Fix usage of lport/rport while tracking rev forwards
parent
6d504316ae
commit
866cb5a23b
|
@ -506,10 +506,10 @@ class Console::CommandDispatcher::Stdapi::Net
|
|||
return
|
||||
end
|
||||
|
||||
if service.stop_reverse_tcp_relay(rport)
|
||||
print_status("Successfully stopped reverse TCP relay on :#{rport}")
|
||||
if service.stop_reverse_tcp_relay(lport)
|
||||
print_status("Successfully stopped reverse TCP relay on :#{lport}")
|
||||
else
|
||||
print_error("Failed to stop reverse TCP relay on #{rport}")
|
||||
print_error("Failed to stop reverse TCP relay on #{lport}")
|
||||
end
|
||||
else
|
||||
# No local port, no love.
|
||||
|
|
|
@ -226,7 +226,7 @@ class LocalRelay
|
|||
opts['__RelayType'] = 'tcp'
|
||||
opts['Reverse'] = true
|
||||
|
||||
name = "Reverse-#{opts['PeerPort']}"
|
||||
name = "Reverse-#{opts['LocalPort']}"
|
||||
|
||||
relay = ReverseRelay.new(name, channel, opts)
|
||||
|
||||
|
|
Loading…
Reference in New Issue