Skip to content

Commit ea89f94

Browse files
committed
Add to set socket reuseaddr true
1 parent a3a4278 commit ea89f94

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/pacproxy/pacproxy.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def initialize(config = {})
2727

2828
def start
2929
@socket = TCPServer.new(@host, @port)
30+
@socket.setsockopt(:SOCKET, :REUSEADDR, true)
3031
@status = :Running
3132
loop do
3233
s = @socket.accept

0 commit comments

Comments
 (0)