chore(constants): internal/constants/providers
- New package to avoid package import cycles
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"github.com/qdm12/gluetun/internal/configuration/settings"
|
||||
"github.com/qdm12/gluetun/internal/constants"
|
||||
"github.com/qdm12/gluetun/internal/constants/providers"
|
||||
"github.com/qdm12/gluetun/internal/models"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
@@ -42,7 +43,7 @@ func Test_modifyConfig(t *testing.T) {
|
||||
ProcessUser: "procuser",
|
||||
Interface: "tun3",
|
||||
Verbosity: intPtr(0),
|
||||
}.WithDefaults(constants.Custom),
|
||||
}.WithDefaults(providers.Custom),
|
||||
connection: models.Connection{
|
||||
IP: net.IPv4(1, 2, 3, 4),
|
||||
Port: 1194,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package custom
|
||||
|
||||
import (
|
||||
"github.com/qdm12/gluetun/internal/constants"
|
||||
"github.com/qdm12/gluetun/internal/constants/providers"
|
||||
"github.com/qdm12/gluetun/internal/openvpn/extract"
|
||||
"github.com/qdm12/gluetun/internal/provider/utils"
|
||||
)
|
||||
@@ -14,6 +14,6 @@ type Provider struct {
|
||||
func New() *Provider {
|
||||
return &Provider{
|
||||
extractor: extract.New(),
|
||||
NoPortForwarder: utils.NewNoPortForwarding(constants.Custom),
|
||||
NoPortForwarder: utils.NewNoPortForwarding(providers.Custom),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user