|
|
|
@ -2,8 +2,6 @@ mode = 0 # CHANGE ME
|
|
|
|
|
# 0 - client mode
|
|
|
|
|
# 1 - server mode
|
|
|
|
|
|
|
|
|
|
#port = 14618
|
|
|
|
|
|
|
|
|
|
import socket
|
|
|
|
|
from os import system as ss
|
|
|
|
|
from random import randint
|
|
|
|
@ -110,9 +108,8 @@ def client():
|
|
|
|
|
from requests import get
|
|
|
|
|
|
|
|
|
|
host = 'bore.pub'
|
|
|
|
|
#file = get('https://gitlab.com/justuser31/p2p_justuser/-/raw/main/list_server.info')
|
|
|
|
|
#port = int(file.content)
|
|
|
|
|
port = 28938
|
|
|
|
|
file = get('https://gitea.gulyaipole.fun/justuser/p2p_justuser/raw/branch/main/list_server.info')
|
|
|
|
|
port = int(file.content)
|
|
|
|
|
|
|
|
|
|
client_socket = socket.socket()
|
|
|
|
|
client_socket.connect((host, port))
|
|
|
|
|