mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
4ba159e483
- remove repetitive `cannot` and `failed` prefixes - rename `unmarshaling` to `decoding`
17 lines
280 B
Go
17 lines
280 B
Go
package secrets
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
|
)
|
|
|
|
func readVPN() (vpn settings.VPN, err error) {
|
|
vpn.OpenVPN, err = readOpenVPN()
|
|
if err != nil {
|
|
return vpn, fmt.Errorf("reading OpenVPN settings: %w", err)
|
|
}
|
|
|
|
return vpn, nil
|
|
}
|