17 lines
294 B
Go
17 lines
294 B
Go
package secrets
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
|
)
|
|
|
|
func (s *Source) readVPN() (vpn settings.VPN, err error) {
|
|
vpn.OpenVPN, err = s.readOpenVPN()
|
|
if err != nil {
|
|
return vpn, fmt.Errorf("reading OpenVPN settings: %w", err)
|
|
}
|
|
|
|
return vpn, nil
|
|
}
|