Compare commits

..

1 Commits

Author SHA1 Message Date
crn4
de0dc9bf93 bypass onboarding for test purposes 2025-07-21 13:31:16 +02:00
7 changed files with 9 additions and 10 deletions

View File

@@ -3,4 +3,4 @@
package configurer
// WgInterfaceDefault is a default interface name of Netbird
const WgInterfaceDefault = "nb0"
const WgInterfaceDefault = "wt0"

View File

@@ -39,7 +39,7 @@ const (
)
var defaultInterfaceBlacklist = []string{
iface.WgInterfaceDefault, "nb", "wt", "utun", "tun0", "zt", "ZeroTier", "wg", "ts",
iface.WgInterfaceDefault, "wt", "utun", "tun0", "zt", "ZeroTier", "wg", "ts",
"Tailscale", "tailscale", "docker", "veth", "br-", "lo",
}

View File

@@ -1393,7 +1393,7 @@ func createEngine(ctx context.Context, cancel context.CancelFunc, setupKey strin
if runtime.GOOS == "darwin" {
ifaceName = fmt.Sprintf("utun1%d", i)
} else {
ifaceName = fmt.Sprintf("nb%d", i)
ifaceName = fmt.Sprintf("wt%d", i)
}
wgPort := 33100 + i

View File

@@ -19,7 +19,7 @@ type mockIFaceMapper struct {
}
func (m *mockIFaceMapper) Name() string {
return "nb0"
return "wt0"
}
func (m *mockIFaceMapper) Address() wgaddr.Address {

View File

@@ -252,7 +252,7 @@ func TestSysOps_validateRoute_InvalidPrefix(t *testing.T) {
IP: wgNetwork.Addr(),
Network: wgNetwork,
},
name: "nb0",
name: "wt0",
}
sysOps := &SysOps{

View File

@@ -1792,7 +1792,7 @@ func newAccountWithId(ctx context.Context, accountID, userID, domain string, dis
RoutingPeerDNSResolutionEnabled: true,
},
Onboarding: types.AccountOnboarding{
OnboardingFlowPending: true,
OnboardingFlowPending: false,
SignupFormPending: true,
},
}

View File

@@ -424,10 +424,9 @@ func toPolicyResponse(groups []*types.Group, policy *types.Policy) *api.Policy {
}
if group, ok := groupsMap[gid]; ok {
minimum := api.GroupMinimum{
Id: group.ID,
Name: group.Name,
PeersCount: len(group.Peers),
ResourcesCount: len(group.Resources),
Id: group.ID,
Name: group.Name,
PeersCount: len(group.Peers),
}
destinations = append(destinations, minimum)
cache[gid] = minimum