Move network to newt to share

Former-commit-id: dfe49ad9c9
This commit is contained in:
Owen
2025-11-26 15:55:30 -05:00
parent 7e410cde28
commit e8f1fb507c
11 changed files with 5 additions and 875 deletions

View File

@@ -14,12 +14,12 @@ import (
"github.com/fosrl/newt/bind"
"github.com/fosrl/newt/holepunch"
"github.com/fosrl/newt/logger"
"github.com/fosrl/newt/network"
"github.com/fosrl/newt/util"
"github.com/fosrl/olm/api"
olmDevice "github.com/fosrl/olm/device"
"github.com/fosrl/olm/dns"
dnsOverride "github.com/fosrl/olm/dns/override"
"github.com/fosrl/olm/network"
"github.com/fosrl/olm/peermonitor"
"github.com/fosrl/olm/peers"
"github.com/fosrl/olm/websocket"
@@ -770,6 +770,7 @@ func StartTunnel(config TunnelConfig) {
"relay": !config.Holepunch,
"olmVersion": globalConfig.Version,
"orgId": config.OrgID,
"userToken": userToken,
// "doNotCreateNewClient": config.DoNotCreateNewClient,
}, 1*time.Second)

View File

@@ -7,7 +7,7 @@ import (
"time"
"github.com/fosrl/newt/logger"
"github.com/fosrl/olm/network"
"github.com/fosrl/newt/network"
"github.com/fosrl/olm/websocket"
)