feat(settings): parse Wireguard settings from /gluetun/wireguard/wg0.conf (#1120)
This commit is contained in:
@@ -4,10 +4,15 @@ import (
|
||||
"github.com/qdm12/gluetun/internal/configuration/settings"
|
||||
)
|
||||
|
||||
type Source struct{}
|
||||
type Source struct {
|
||||
wireguardConfigPath string
|
||||
}
|
||||
|
||||
func New() *Source {
|
||||
return &Source{}
|
||||
const wireguardConfigPath = "/gluetun/wireguard/wg0.conf"
|
||||
return &Source{
|
||||
wireguardConfigPath: wireguardConfigPath,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Source) String() string { return "files" }
|
||||
|
||||
Reference in New Issue
Block a user