File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def bind_port
61
61
# if it fails to start the listener.
62
62
#
63
63
def setup_handler
64
- if datastore [ 'Proxies' ] and not datastore [ 'ReverseAllowProxy' ]
64
+ if ! datastore [ 'Proxies' ] . blank? && ! datastore [ 'ReverseAllowProxy' ]
65
65
raise RuntimeError , "TCP connect-back payloads cannot be used with Proxies. Use 'set ReverseAllowProxy true' to override this behaviour."
66
66
end
67
67
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def human_name
63
63
# if it fails to start the listener.
64
64
#
65
65
def setup_handler
66
- if datastore [ 'Proxies' ] and not datastore [ 'ReverseAllowProxy' ]
66
+ if ! datastore [ 'Proxies' ] . blank? && ! datastore [ 'ReverseAllowProxy' ]
67
67
raise RuntimeError , 'TCP connect-back payloads cannot be used with Proxies. Can be overriden by setting ReverseAllowProxy to true'
68
68
end
69
69
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def self.general_handler_type
43
43
# if it fails to start the listener.
44
44
#
45
45
def setup_handler
46
- if datastore [ 'Proxies' ] and not datastore [ 'ReverseAllowProxy' ]
46
+ if ! datastore [ 'Proxies' ] . blank? && ! datastore [ 'ReverseAllowProxy' ]
47
47
raise RuntimeError , "TCP connect-back payloads cannot be used with Proxies. Use 'set ReverseAllowProxy true' to override this behaviour."
48
48
end
49
49
You can’t perform that action at this time.
0 commit comments