Fixing some bugs
This commit is contained in:
Dima YaFlay
2021-11-21 19:06:39 +03:00
committed by GitHub
parent 90c0448b8d
commit 5fe60e0e5e

View File

@@ -1,6 +1,7 @@
import socket import socket
ip = open('my_ip.txt') if os.path.isfile('C:/Python/Project/tg_bot/files/received/my_ip.txt):
ip_adress = ip.read() ip = open('C:/Python/Project/tg_bot/files/received/my_ip.txt', 'r')
ip_adress = ip.read()
HOST = ip_adress # Standard loopback interface address (localhost) HOST = ip_adress # Standard loopback interface address (localhost)
PORT = 65432 # Port to listen on (non-privileged ports are > 1023) PORT = 65432 # Port to listen on (non-privileged ports are > 1023)