From c7096d13183159647b92aaed522a406c29b91798 Mon Sep 17 00:00:00 2001 From: Callan Bryant Date: Wed, 12 Oct 2022 20:13:00 +0100 Subject: [PATCH] remove further references to ReportFile --- README.md | 1 - cmd/cli/init.go | 2 -- contrib/report_rendering/php/dsnetreport.php | 1 - 3 files changed, 4 deletions(-) diff --git a/README.md b/README.md index 4ebc268..38e4559 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,6 @@ Main (automatically generated) configuration example: "IP6": "fd00:d631:74ca:7b00:a28:11a1:b821:f013", "DNS": "", "Networks": [], - "ReportFile": "/var/lib/dsnetreport.json", "PrivateKey": "uC+xz3v1mfjWBHepwiCgAmPebZcY+EdhaHAvqX2r7U8=", "PostUp": "", "PostDown" "", diff --git a/cmd/cli/init.go b/cmd/cli/init.go index a24a769..5cbde3f 100644 --- a/cmd/cli/init.go +++ b/cmd/cli/init.go @@ -16,7 +16,6 @@ import ( ) func Init() { - reportFile := viper.GetString("report_file") listenPort := viper.GetInt("listen_port") configFile := viper.GetString("config_file") interfaceName := viper.GetString("interface_name") @@ -40,7 +39,6 @@ func Init() { Network6: getULANet(), Peers: []PeerConfig{}, Domain: "dsnet", - ReportFile: reportFile, ExternalIP: externalIPV4, ExternalIP6: getExternalIP6(), InterfaceName: interfaceName, diff --git a/contrib/report_rendering/php/dsnetreport.php b/contrib/report_rendering/php/dsnetreport.php index 95a9cd0..dc22df3 100644 --- a/contrib/report_rendering/php/dsnetreport.php +++ b/contrib/report_rendering/php/dsnetreport.php @@ -3,7 +3,6 @@ // Thanks to github.com/Write. See https://github.com/naggie/dsnet/issues/4#issuecomment-632928158 for background. /* Look for dsnetreport.json in current directory */ -/* Change "ReportFile": "/var/lib/dsnetreport.json" accordingly */ /* Also add a crontab to run "dsnet report" to refresh the dsnetreport file */ $json = file_get_contents(__DIR__.'/dsnetreport.json');