naggie / dsnet

FAST command to manage a centralised wireguard VPN. Think wg-quick but quicker: key generation + address allocation.
https://calbryant.uk/blog/how-to-set-up-a-wireguard-vpn-in-minutes-with-dsnet/
MIT License
679 stars 32 forks source link

Report file does not contain some newer value keys #70

Closed frillip closed 2 years ago

frillip commented 2 years ago

Report file is missing the keys ExternalHostname and ExternalIP6 that were recently added to dsnetconfig.json

Sample outputs: /etc/dsnetconfig.json:

{
    "ExternalHostname": "wireguard.example.com",
    "ExternalIP": "198.51.100.2",
    "ExternalIP6": "fd00:7b31:106a::1",
    "ListenPort": 51820,
    "Domain": "dsnet",
    "InterfaceName": "dsnet",
    "Network": "10.164.236.0/24",
    "Network6": "fd00:7b31:106a:ae00::/64",
    "IP": "10.164.236.1",
    "IP6": "fd00:7b31:106a:ae00::1",
    "DNS": "10.164.236.1",
    "Networks": [
    ],
    "ReportFile": "/var/lib/dsnetreport.json",
...

/var/lib/dsnetreport.json:

{
    "ExternalIP": "198.51.100.2",
    "InterfaceName": "dsnet",
    "ListenPort": 51820,
    "Domain": "dsnet",
    "IP": "10.164.236.1",
    "IP6": "fd00:7b31:106a:ae00::1",
    "Network": "10.164.236.0/24",
    "Network6": "fd00:7b31:106a:ae00::/64",
    "DNS": "10.164.236.1",
    "PeersOnline": 3,
...