Config packetlog
This commit is contained in:
@@ -17,6 +17,7 @@ class ConfigData:
|
||||
SDKServer: ServerConfig
|
||||
SRToolsServer: ServerConfig
|
||||
RegionName: str
|
||||
PacketLog: bool
|
||||
def write_default_config():
|
||||
config = ConfigData(
|
||||
LogLevel="INFO",
|
||||
@@ -24,6 +25,7 @@ class ConfigData:
|
||||
SDKServer=ServerConfig(IP="127.0.0.1", Port=21000),
|
||||
SRToolsServer=ServerConfig(IP="127.0.0.1", Port=25000),
|
||||
RegionName="NeonSR",
|
||||
PacketLog=True,
|
||||
)
|
||||
with open("Config.json", "w") as f:
|
||||
f.write(json.dumps(asdict(config), indent=2))
|
||||
|
||||
Reference in New Issue
Block a user