diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 16:41:15 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 16:41:15 +0100 |
| commit | f1e5096b7827d82ab5b2df10080a2ad9223f2665 (patch) | |
| tree | d9d2d05f11daab95abcda1721ea278652d09357b /src/wireguard.go | |
| parent | b9b2659908d5fe8afcc74f2769a8da7bab243018 (diff) | |
Return headers in HTTP for wireguard expiry
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 |
