Skip to content

Commit

Permalink
remove further references to ReportFile
Browse files Browse the repository at this point in the history
  • Loading branch information
naggie committed Oct 12, 2022
1 parent ba93fb4 commit c7096d1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" "",
Expand Down
2 changes: 0 additions & 2 deletions cmd/cli/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -40,7 +39,6 @@ func Init() {
Network6: getULANet(),
Peers: []PeerConfig{},
Domain: "dsnet",
ReportFile: reportFile,
ExternalIP: externalIPV4,
ExternalIP6: getExternalIP6(),
InterfaceName: interfaceName,
Expand Down
1 change: 0 additions & 1 deletion contrib/report_rendering/php/dsnetreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit c7096d1

Please sign in to comment.