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');