metasploit_data_models 0.22.2 → 0.22.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/mdm/service.rb +8 -13
- data/lib/metasploit_data_models/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c7dc8ddf2d81a943835e4557b1fa00525e852a6
|
4
|
+
data.tar.gz: 65bb0813c285665a44ed89c608e750e5afdfda1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf07e6ee742d234373cf08b82c43b5edade0b804af31af704f91cc1e1109c88af9113d6c27b1f38172b30c6bf2c0e7a001fafa895a660577a35cf93a667ece72
|
7
|
+
data.tar.gz: 2bdf1f360479034a866c2593f360dc70a37a87db359a594d1711869d0032eb41d731bfb427917084100b7ef407e2d60ffb513bb5dec74c2a0e10013dc952c89a
|
data/app/models/mdm/service.rb
CHANGED
@@ -222,19 +222,14 @@ class Mdm::Service < ActiveRecord::Base
|
|
222
222
|
in: PROTOS
|
223
223
|
}
|
224
224
|
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
unless no_dupes
|
234
|
-
errors.add(:port, error_msg)
|
235
|
-
errors.add(:proto, error_msg)
|
236
|
-
end
|
237
|
-
end
|
225
|
+
validates :host_id,
|
226
|
+
uniqueness: {
|
227
|
+
message: 'already has a service with this port and proto',
|
228
|
+
scope: [
|
229
|
+
:port,
|
230
|
+
:proto
|
231
|
+
]
|
232
|
+
}
|
238
233
|
|
239
234
|
#
|
240
235
|
# Class Methods
|
@@ -6,7 +6,7 @@ module MetasploitDataModels
|
|
6
6
|
# The minor version number, scoped to the {MAJOR} version number.
|
7
7
|
MINOR = 22
|
8
8
|
# The patch number, scoped to the {MINOR} version number.
|
9
|
-
PATCH =
|
9
|
+
PATCH = 3
|
10
10
|
|
11
11
|
# The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the
|
12
12
|
# {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
|