KatelynHaworth / go-tproxy

Linux Transparent Proxy library for Golang
MIT License
306 stars 61 forks source link

bugfix(socket): Remove duplicate closure of sockets on error #7

Closed KatelynHaworth closed 5 years ago

KatelynHaworth commented 5 years ago

Remove calls to syscall.Close() when a error is handled when applying a socket option, this call would duplicate the calls to close the sockets file descriptor as a defered call to close the file is set before applying socket options.

Will resolve issue ticket #1

KatelynHaworth commented 5 years ago

1 Resolved via merge of PR