mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-26 20:36:27 +02:00
chore(updater): move updater packages to pkg/updaters/<name>
This commit is contained in:
@@ -9,12 +9,12 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/constants"
|
||||
"github.com/qdm12/gluetun/internal/constants/vpn"
|
||||
"github.com/qdm12/gluetun/internal/netlink"
|
||||
"github.com/qdm12/gluetun/internal/pmtud"
|
||||
pconstants "github.com/qdm12/gluetun/internal/pmtud/constants"
|
||||
"github.com/qdm12/gluetun/internal/pmtud/tcp"
|
||||
"github.com/qdm12/gluetun/internal/version"
|
||||
uconstants "github.com/qdm12/gluetun/pkg/updaters/constants"
|
||||
"github.com/qdm12/log"
|
||||
)
|
||||
|
||||
@@ -36,7 +36,7 @@ type tunnelUpPMTUDData struct {
|
||||
// enabled is notably false if the user specifies a custom MTU.
|
||||
enabled bool
|
||||
// vpnType is used to find the maximum VPN header overhead.
|
||||
// It can be [vpn.Wireguard] or [vpn.OpenVPN].
|
||||
// It can be [constants.Wireguard] or [constants.OpenVPN].
|
||||
vpnType string
|
||||
// network is used to find the network level header overhead.
|
||||
// It can be [constants.UDP] or [constants.TCP].
|
||||
@@ -53,7 +53,7 @@ type tunnelUpPMTUDData struct {
|
||||
|
||||
func (l *Loop) onTunnelUp(ctx, loopCtx context.Context, data tunnelUpData) {
|
||||
switch vpnType := l.GetSettings().Type; vpnType {
|
||||
case vpn.Wireguard, vpn.AmneziaWg:
|
||||
case uconstants.Wireguard, uconstants.AmneziaWg:
|
||||
l.logger.Infof("%s setup is complete. "+
|
||||
"Note %s is a silent protocol and it may or may not work, without giving any error message. "+
|
||||
"Typically i/o timeout errors indicate the %s connection is not working.",
|
||||
|
||||
Reference in New Issue
Block a user