Feat: adapt logger prefix to VPN used

- `openvpn: ` for OpenVPN
- `wireguard: ` for Wireguard
This commit is contained in:
Quentin McGaw (desktop)
2021-09-12 13:27:30 +00:00
parent cc677bde93
commit 2ea00d149f
2 changed files with 6 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ type Loop struct {
dnsLooper dns.Looper
// Other objects
starter command.Starter // for OpenVPN
logger logging.Logger
logger logging.ParentLogger
client *http.Client
// Internal channels and values
stop <-chan struct{}
@@ -72,7 +72,7 @@ func NewLoop(vpnSettings configuration.VPN,
netLinker netlink.NetLinker, fw firewallConfigurer, routing routing.VPNGetter,
portForward portforward.StartStopper, starter command.Starter,
publicip publicip.Looper, dnsLooper dns.Looper,
logger logging.Logger, client *http.Client,
logger logging.ParentLogger, client *http.Client,
buildInfo models.BuildInformation, versionInfo bool) *Loop {
start := make(chan struct{})
running := make(chan models.LoopStatus)