fix imports

This commit is contained in:
ginuerzh
2022-03-16 20:06:34 +08:00
parent 506142fd0b
commit 36947bcbd9
126 changed files with 324 additions and 335 deletions
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"context"
"net"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
"github.com/xtaci/tcpraw"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package ftcp
import (
"time"
md "github.com/go-gost/gost/v3/pkg/metadata"
md "github.com/go-gost/core/metadata"
)
const (
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
pb "github.com/go-gost/x/internal/util/grpc/proto"
"google.golang.org/grpc"
"google.golang.org/grpc/backoff"
+1 -1
View File
@@ -1,7 +1,7 @@
package grpc
import (
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
// a dummy HTTP2 client conn used by HTTP2 client connector
+5 -5
View File
@@ -7,11 +7,11 @@ import (
"sync"
"time"
net_dialer "github.com/go-gost/gost/v3/pkg/common/net/dialer"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
net_dialer "github.com/go-gost/core/common/net/dialer"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
)
func init() {
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
"golang.org/x/net/http2"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package h2
import (
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+1 -1
View File
@@ -1,7 +1,7 @@
package http2
import (
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"net/http"
"sync"
"github.com/go-gost/gost/v3/pkg/dialer"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
pht_util "github.com/go-gost/x/internal/util/pht"
"github.com/lucas-clemente/quic-go"
"github.com/lucas-clemente/quic-go/http3"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"strings"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
const (
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
icmp_pkg "github.com/go-gost/x/internal/util/icmp"
"github.com/lucas-clemente/quic-go"
"golang.org/x/net/icmp"
+1 -1
View File
@@ -3,7 +3,7 @@ package quic
import (
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+4 -4
View File
@@ -7,10 +7,10 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
kcp_util "github.com/go-gost/x/internal/util/kcp"
"github.com/xtaci/kcp-go/v5"
"github.com/xtaci/smux"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/json"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
kcp_util "github.com/go-gost/x/internal/util/kcp"
)
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
"github.com/xtaci/smux"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package mtls
import (
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
ws_util "github.com/go-gost/x/internal/util/ws"
"github.com/gorilla/websocket"
"github.com/xtaci/smux"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net/http"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
const (
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"net/url"
"sync"
"github.com/go-gost/gost/v3/pkg/logger"
"github.com/go-gost/core/logger"
)
type obfsHTTPConn struct {
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"context"
"net"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
)
func init() {
+1 -1
View File
@@ -3,7 +3,7 @@ package http
import (
"net/http"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"context"
"net"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
)
func init() {
+1 -1
View File
@@ -1,7 +1,7 @@
package tls
import (
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+4 -4
View File
@@ -7,10 +7,10 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
pht_util "github.com/go-gost/x/internal/util/pht"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"strings"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
const (
+4 -4
View File
@@ -6,10 +6,10 @@ import (
"net"
"sync"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
quic_util "github.com/go-gost/x/internal/util/quic"
"github.com/lucas-clemente/quic-go"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package quic
import (
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
+4 -4
View File
@@ -7,10 +7,10 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
"github.com/go-gost/core/logger"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
ssh_util "github.com/go-gost/x/internal/util/ssh"
"golang.org/x/crypto/ssh"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strings"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
"golang.org/x/crypto/ssh"
)
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"sync"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
ssh_util "github.com/go-gost/x/internal/util/ssh"
"golang.org/x/crypto/ssh"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"io/ioutil"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
"golang.org/x/crypto/ssh"
)
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"net/url"
"time"
"github.com/go-gost/gost/v3/pkg/dialer"
md "github.com/go-gost/gost/v3/pkg/metadata"
"github.com/go-gost/gost/v3/pkg/registry"
"github.com/go-gost/core/dialer"
md "github.com/go-gost/core/metadata"
"github.com/go-gost/core/registry"
ws_util "github.com/go-gost/x/internal/util/ws"
"github.com/gorilla/websocket"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net/http"
"time"
mdata "github.com/go-gost/gost/v3/pkg/metadata"
mdata "github.com/go-gost/core/metadata"
)
const (