diff options
Diffstat (limited to 'src/wireguard.go')
| -rw-r--r-- | src/wireguard.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wireguard.go b/src/wireguard.go index 0d5967c..5491764 100644 --- a/src/wireguard.go +++ b/src/wireguard.go @@ -33,12 +33,17 @@ func (eduvpn *VPNState) WireguardGetConfig() (string, error) { } wireguardPublicKey := wireguardKey.PublicKey().String() - configWireguard, configErr := eduvpn.APIConnectWireguard(wireguardPublicKey) + configWireguard, _, configErr := eduvpn.APIConnectWireguard(wireguardPublicKey) if configErr != nil { return "", configErr } + // FIXME: Store expiry + // This needs the go code a way to identify a connection + // Use the uuid of the connection e.g. on Linux + // This needs the client code to call the go code + configWireguardKey := wireguardConfigAddKey(configWireguard, wireguardKey) return configWireguardKey, nil |
