Fix usage of lport/rport while tracking rev forwards

bug/bundler_fix
OJ 2016-04-06 16:36:41 +10:00
parent 6d504316ae
commit 866cb5a23b
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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)