Fix remove target error

This commit is contained in:
Owen Schwartz
2024-11-23 16:52:31 -05:00
parent 94a94613eb
commit 4df89c208b
2 changed files with 3 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ func (pm *ProxyManager) RemoveTarget(protocol, listen string, port int) error {
target.Port == port &&
strings.ToLower(target.Protocol) == protocol {
// Signal the serving goroutine to stop
close(target.cancel)
// close(target.cancel)
// Close the appropriate listener/connection based on protocol
target.Lock()