diff --git a/internal/client/vkauth/token_oksession.go b/internal/client/vkauth/token_oksession.go index 2da7299..53ef1a4 100644 --- a/internal/client/vkauth/token_oksession.go +++ b/internal/client/vkauth/token_oksession.go @@ -5,8 +5,8 @@ import ( "fmt" neturl "net/url" - "github.com/samosvalishe/btp/internal/client/browserprofile" "github.com/google/uuid" + "github.com/samosvalishe/btp/internal/client/browserprofile" tlsclient "github.com/bogdanfinn/tls-client" ) diff --git a/internal/proxy/udprelay/loop.go b/internal/proxy/udprelay/loop.go index b43fe6a..9b9504f 100644 --- a/internal/proxy/udprelay/loop.go +++ b/internal/proxy/udprelay/loop.go @@ -10,11 +10,11 @@ import ( "sync/atomic" "time" + "github.com/cbeuw/connutil" + "github.com/samosvalishe/btp/internal/client/vkauth" "github.com/samosvalishe/btp/internal/proxy/common" "github.com/samosvalishe/btp/internal/stats" "github.com/samosvalishe/btp/internal/wire/srtpmimicry" - "github.com/samosvalishe/btp/internal/client/vkauth" - "github.com/cbeuw/connutil" ) // DTLSLoop keeps a single DTLS termination alive for streamID, restarting it diff --git a/internal/proxy/udprelay/run.go b/internal/proxy/udprelay/run.go index 169da2f..e408fde 100644 --- a/internal/proxy/udprelay/run.go +++ b/internal/proxy/udprelay/run.go @@ -52,10 +52,10 @@ var ErrFatal = errors.New("udprelay: fatal error") // are owned by Run and exposed here so DTLSLoop/TURNLoop can share them when // called directly (Run wires them automatically). type Deps struct { - DTLSDialer *dtlsdial.Dialer - Auth AuthHandler - Log logx.Logger - ActiveLocalPeer *atomic.Value + DTLSDialer *dtlsdial.Dialer + Auth AuthHandler + Log logx.Logger + ActiveLocalPeer *atomic.Value ConnectedStreams *atomic.Int32 // fatalCh is an internal signalling channel; set by Run, written by // TURNLoop, and drained by Run to propagate the fatal error up. @@ -94,12 +94,12 @@ func Run(ctx context.Context, dtlsDialer *dtlsdial.Dialer, auth AuthHandler, log fatalCh := make(chan error, 1) var activeLocalPeer atomic.Value deps := &Deps{ - DTLSDialer: dtlsDialer, - Auth: auth, - Log: logger, - ActiveLocalPeer: &activeLocalPeer, + DTLSDialer: dtlsDialer, + Auth: auth, + Log: logger, + ActiveLocalPeer: &activeLocalPeer, ConnectedStreams: connectedStreams, - fatalCh: fatalCh, + fatalCh: fatalCh, } // runCtx is cancelled when a fatal error is detected (via fatalCh), which