This fixes three errors when using listener_stop <id> in a session:
Stopping a TCP listener without the --no-retry flag continuously prints a message about retrying the listener
Stopping a TCP listener with the --no-retry flag prints an error about EOF and exits (not technically an issue as the message is true, but there's no reason for this message)
A listener the ends without errors (e.g. a UDP listener before this fix) would endlessly print "Listener ended without error."
Because line 102 in pkg/proxy/listeners.go already returns an error, it seems to me that having the err == io.EOF check should return nil, otherwise there is no point in having it (and it fixes 2 of the 3 errors mentioned above).
Fixes #56.
This fixes three errors when using
listener_stop <id>
in a session:Because line 102 in
pkg/proxy/listeners.go
already returns an error, it seems to me that having theerr == io.EOF
check should return nil, otherwise there is no point in having it (and it fixes 2 of the 3 errors mentioned above).