From 86aaba23c4469bcb8e3648aadbcf174e4b530d89 Mon Sep 17 00:00:00 2001 From: farhansolodev Date: Mon, 3 Apr 2023 06:17:19 +0400 Subject: [PATCH] hardcoded default path incorrect --- config/generate/generate.go | 3 ++- p2p/ip_table.json | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config/generate/generate.go b/config/generate/generate.go index 6c95792..212f607 100644 --- a/config/generate/generate.go +++ b/config/generate/generate.go @@ -72,7 +72,8 @@ func SetDefaults(envName string, forceDefault bool, CustomConfig interface{}, No if len(ConfigUpdate) == 0 { //Setting default paths for the config file - Defaults.IPTable = defaultPath + "p2p/iptable/ip_table.json" + Defaults.IPTable = defaultPath + "p2p/ip_table.json" + // Defaults.IPTable = defaultPath + "p2p/iptable/ip_table.json" Defaults.DefaultDockerFile = defaultPath + "server/docker/containers/docker-ubuntu-sshd/" Defaults.DockerContainers = defaultPath + "server/docker/containers/" Defaults.SpeedTestFile = defaultPath + "p2p/50.bin" diff --git a/p2p/ip_table.json b/p2p/ip_table.json index d2ea19c..83c3081 100644 --- a/p2p/ip_table.json +++ b/p2p/ip_table.json @@ -4,10 +4,13 @@ "Name": "Node1", "IPV4": "64.227.168.102", "IPV6": "", - "Latency": 0, + "Latency": 145800903, + "Download": 0, + "Upload": 0, "ServerPort": "8088", - "NAT": "False", - "EscapeImplementation": "None" + "NAT": "False", + "EscapeImplementation": "None", + "CustomInformation": null } ] -} +} \ No newline at end of file