1
0
Fork 0
mirror of synced 2024-05-01 10:52:32 +12:00

Bind socket to '0.0.0.0' rather than 'localhost' to allow for more flexible OAuth connection. (#368)

This commit is contained in:
BlipRanger 2021-05-12 10:47:33 -04:00 committed by GitHub
parent 6f9430fc71
commit fca3184950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,8 @@ class OAuth2Authenticator:
def receive_connection() -> socket.socket:
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind(('localhost', 7634))
logger.log(9, 'Server listening on localhost:7634')
server.bind(('0.0.0.0', 7634))
logger.log(9, 'Server listening on 0.0.0.0:7634')
server.listen(1)
client = server.accept()[0]