feat(settings): parse Wireguard settings from /gluetun/wireguard/wg0.conf (#1120)

This commit is contained in:
Quentin McGaw
2023-07-22 17:25:30 +02:00
committed by GitHub
parent c5cc240a6c
commit 0ebfe534d3
11 changed files with 703 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
package files
import (
"fmt"
"github.com/qdm12/gluetun/internal/configuration/settings"
)
func (s *Source) readServerSelection() (selection settings.ServerSelection, err error) {
selection.Wireguard, err = s.readWireguardSelection()
if err != nil {
return selection, fmt.Errorf("wireguard: %w", err)
}
return selection, nil
}