Skip to content

Commit 0e9b733

Browse files
authored
Update jsh.py
1 parent 2a2b6ff commit 0e9b733

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jsh.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def main():
153153
global domain
154154
global pth
155155
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
156+
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
157+
156158
try:
157159
s.bind(('0.0.0.0', port))
158160
except socket.error as msg:

0 commit comments

Comments
 (0)