forked from p15670423/monkey
Common: Use from_json() in build_default_agent_configuration()
This commit is contained in:
parent
6a927266a4
commit
a1baaae76a
|
@ -1,4 +1,4 @@
|
|||
from . import AgentConfiguration, AgentConfigurationSchema
|
||||
from . import AgentConfiguration
|
||||
|
||||
DEFAULT_AGENT_CONFIGURATION_JSON = """{
|
||||
"keep_tunnel_open_time": 30,
|
||||
|
@ -204,5 +204,4 @@ DEFAULT_AGENT_CONFIGURATION_JSON = """{
|
|||
|
||||
|
||||
def build_default_agent_configuration() -> AgentConfiguration:
|
||||
schema = AgentConfigurationSchema()
|
||||
return schema.loads(DEFAULT_AGENT_CONFIGURATION_JSON)
|
||||
return AgentConfiguration.from_json(DEFAULT_AGENT_CONFIGURATION_JSON)
|
||||
|
|
Loading…
Reference in New Issue