Longer timeout for getting public ip, so we can wait for gluetun to come online
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
gluetun:
|
gluetun:
|
||||||
image: qmcgaw/gluetun
|
image: qmcgaw/gluetun
|
||||||
container_name: gluentun
|
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ def connect_to_channel_and_check_topic():
|
|||||||
log("*", f"Connecting to {IRC_SERVER}:{IRC_PORT} {"with TLS" if USE_TLS else "plain"}")
|
log("*", f"Connecting to {IRC_SERVER}:{IRC_PORT} {"with TLS" if USE_TLS else "plain"}")
|
||||||
|
|
||||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
sock.settimeout(10)
|
sock.settimeout(60)
|
||||||
if USE_TLS:
|
if USE_TLS:
|
||||||
context = ssl.create_default_context()
|
context = ssl.create_default_context()
|
||||||
sock = context.wrap_socket(sock, server_hostname=IRC_SERVER)
|
sock = context.wrap_socket(sock, server_hostname=IRC_SERVER)
|
||||||
|
|||||||
Reference in New Issue
Block a user