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