File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,12 @@ def validate
72
72
73
73
return unless validate_public_config_variable? ( @config )
74
74
75
+ # Note for developers:
76
+ # The configuration path 'beef.http.public_port' is deprecated.
77
+ # Use the new format for public_port variables as described in the BeEF project documentation.
78
+ # Refer to the BeEF configuration guide for the web server configuration details:
79
+ # https://github.com/beefproject/beef/wiki/Configuration#web-server-configuration
75
80
if @config [ 'beef' ] [ 'http' ] [ 'public_port' ]
76
- print_error 'Config path beef.http.public_port is deprecated.'
77
- print_error 'Please use the new format for public variables found'
78
- print_error 'https://github.com/beefproject/beef/wiki/Configuration#web-server-configuration'
79
81
return
80
82
end
81
83
@@ -277,13 +279,15 @@ def load_modules_config
277
279
278
280
private
279
281
282
+ # Note for developers:
283
+ # The configuration path 'beef.http.public' is deprecated.
284
+ # Use the new format for public variables as described in the BeEF project documentation.
285
+ # Refer to the BeEF configuration guide for the web server configuration details:
286
+ # https://github.com/beefproject/beef/wiki/Configuration#web-server-configuration
280
287
def validate_public_config_variable? ( config )
281
288
return true if config [ 'beef' ] [ 'http' ] [ 'public' ] . is_a? ( Hash ) ||
282
289
config [ 'beef' ] [ 'http' ] [ 'public' ] . is_a? ( NilClass )
283
290
284
- print_error 'Config path beef.http.public is deprecated.'
285
- print_error 'Please use the new format for public variables found'
286
- print_error 'https://github.com/beefproject/beef/wiki/Configuration#web-server-configuration'
287
291
false
288
292
end
289
293
end
You can’t perform that action at this time.
0 commit comments