diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-05-13 12:12:22 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-05-13 12:12:22 +0200 |
| commit | 5abf00ab87a55662eefc7716de52ead9749293c6 (patch) | |
| tree | 1cfa64b99482d7cc08b1d7da5d6833b75f5f7714 /internal/openvpn.go | |
| parent | 57d6c2ac55a5fd1ea609c873d5410174b7cf6ca4 (diff) | |
Refactor: Adapt the API to the documentation
Diffstat (limited to 'internal/openvpn.go')
| -rw-r--r-- | internal/openvpn.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/openvpn.go b/internal/openvpn.go index 45beb51..7c4df18 100644 --- a/internal/openvpn.go +++ b/internal/openvpn.go @@ -2,20 +2,20 @@ package internal import "fmt" -func OpenVPNGetConfig(server Server) (string, error) { +func OpenVPNGetConfig(server Server) (string, string, error) { base, baseErr := server.GetBase() if baseErr != nil { - return "", &OpenVPNGetConfigError{Err: baseErr} + return "", "", &OpenVPNGetConfigError{Err: baseErr} } profile_id := base.Profiles.Current configOpenVPN, _, configErr := APIConnectOpenVPN(server, profile_id) if configErr != nil { - return "", &OpenVPNGetConfigError{Err: configErr} + return "", "", &OpenVPNGetConfigError{Err: configErr} } - return configOpenVPN, nil + return configOpenVPN, "openvpn", nil } type OpenVPNGetConfigError struct { |
