Remove code duplication and run goimports

This commit is contained in:
theodorsm 2024-12-19 17:26:13 +01:00
parent c6a0bc299c
commit 2a212640ce
26 changed files with 53 additions and 65 deletions

View file

@ -2,8 +2,9 @@ package utls
import (
"errors"
utls "github.com/refraction-networking/utls"
"strings"
utls "github.com/refraction-networking/utls"
)
// ported from https://github.com/max-b/snowflake/commit/9dded063cb74c6941a16ad90b9dd0e06e618e55e

View file

@ -1,8 +1,9 @@
package utls
import (
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/version"
"strings"
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/version"
)
func generateVersionOutput() string {

View file

@ -5,13 +5,14 @@ import (
"crypto/tls"
"errors"
"fmt"
"golang.org/x/net/proxy"
"net"
"net/http"
"net/url"
"sync"
"time"
"golang.org/x/net/proxy"
utls "github.com/refraction-networking/utls"
"golang.org/x/net/http2"
)