8000 Moved address. · vyraun/practice-python@d4759f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4759f7

Browse files
committed
Moved address.
1 parent 6366d60 commit d4759f7

File tree

< 8000 button data-component="IconButton" type="button" data-testid="collapse-file-tree-button" aria-expanded="true" aria-controls="diff_file_tree" data-analytics-opt-out="true" class="prc-Button-ButtonBase-c50BI d-none d-md-flex position-relative fgColor-muted prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-describedby=":Rsatdab:-loading-announcement" aria-labelledby=":R4atdab:">

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

experiments/sockets/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def fib_server(address):
1111
sock = socket(AF_INET, SOCK_STREAM)
1212
sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
13-
sock.bind(address)
13+
sock.bind(('', address))
1414
sock.listen(5)
1515

1616
while True:
@@ -32,4 +32,4 @@ def fib_handler(client):
3232
print("Closed")
3333

3434

35-
fib_server(('', 25000))
35+
fib_server(25000)

0 commit comments

Comments
 (0)
0