fix:serverIP从环境变量获取
All checks were successful
Test CI / test speed (push) Successful in 14s
All checks were successful
Test CI / test speed (push) Successful in 14s
This commit is contained in:
parent
061bd5d2bf
commit
5b85db2427
@ -89,13 +89,8 @@ def init_db():
|
|||||||
|
|
||||||
# load config from config file
|
# load config from config file
|
||||||
def init_config():
|
def init_config():
|
||||||
import configparser
|
|
||||||
|
|
||||||
global server_address
|
global server_address
|
||||||
config = configparser.ConfigParser()
|
server_address = os.environ.get("server_address")
|
||||||
config.read("client.ini")
|
|
||||||
|
|
||||||
server_address = config["settings"]["server_address"]
|
|
||||||
|
|
||||||
|
|
||||||
# execute on exit
|
# execute on exit
|
||||||
@ -469,7 +464,7 @@ async def recieve_pk(pk: pk_model):
|
|||||||
|
|
||||||
pk = (0, 0)
|
pk = (0, 0)
|
||||||
sk = 0
|
sk = 0
|
||||||
server_address = str
|
server_address = os.environ.get("server_address")
|
||||||
node_response = False
|
node_response = False
|
||||||
message = bytes
|
message = bytes
|
||||||
local_ip = get_own_ip()
|
local_ip = get_own_ip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user