rebrand: frp -> kanhole (kanhole server, kanholec client)
golangci-lint / lint (push) Failing after 1m5s

This commit is contained in:
kannn
2026-05-29 09:05:34 +00:00
Unverified
parent a0a42a4966
commit 2cd3052da1
265 changed files with 949 additions and 962 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"encoding/json"
"net/http"
"github.com/fatedier/frp/pkg/util/log"
"kanhole/pkg/util/log"
)
type GeneralResponse struct {
+1 -1
View File
@@ -17,7 +17,7 @@ package http
import (
"net/http"
"github.com/fatedier/frp/pkg/util/log"
"kanhole/pkg/util/log"
)
type responseWriter struct {
+3 -3
View File
@@ -24,9 +24,9 @@ import (
"github.com/gorilla/mux"
"github.com/fatedier/frp/assets"
v1 "github.com/fatedier/frp/pkg/config/v1"
netpkg "github.com/fatedier/frp/pkg/util/net"
"kanhole/assets"
v1 "kanhole/pkg/config/v1"
netpkg "kanhole/pkg/util/net"
)
var (
+1 -1
View File
@@ -27,7 +27,7 @@ import (
quic "github.com/quic-go/quic-go"
"golang.org/x/crypto/hkdf"
"github.com/fatedier/frp/pkg/util/xlog"
"kanhole/pkg/util/xlog"
)
type ContextGetter interface {
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/fatedier/frp/pkg/proto/wire"
"kanhole/pkg/proto/wire"
)
func TestNewAEADCryptoReadWriterRoundTrip(t *testing.T) {
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"strings"
"time"
"github.com/fatedier/frp/pkg/util/util"
"kanhole/pkg/util/util"
)
type HTTPAuthMiddleware struct {
+2 -2
View File
@@ -24,8 +24,8 @@ import (
libnet "github.com/fatedier/golib/net"
httppkg "github.com/fatedier/frp/pkg/util/http"
"github.com/fatedier/frp/pkg/util/vhost"
httppkg "kanhole/pkg/util/http"
"kanhole/pkg/util/vhost"
)
type HTTPConnectTCPMuxer struct {
+2 -2
View File
@@ -31,8 +31,8 @@ import (
"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"
httppkg "github.com/fatedier/frp/pkg/util/http"
"github.com/fatedier/frp/pkg/util/log"
httppkg "kanhole/pkg/util/http"
"kanhole/pkg/util/log"
)
var ErrNoRouteFound = errors.New("no route found")
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
httppkg "github.com/fatedier/frp/pkg/util/http"
httppkg "kanhole/pkg/util/http"
)
func TestCheckRouteAuthByRequest(t *testing.T) {
+4 -4
View File
@@ -20,8 +20,8 @@ import (
"net/http"
"os"
"github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/pkg/util/version"
"kanhole/pkg/util/log"
"kanhole/pkg/util/version"
)
var NotFoundPagePath = ""
@@ -43,7 +43,7 @@ const (
<h1>The page you requested was not found.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>The server is powered by <a href="https://github.com/fatedier/frp">frp</a>.</p>
<p>The server is powered by <a href="https://kanhole">frp</a>.</p>
<p><em>Faithfully yours, frp.</em></p>
</body>
</html>
@@ -69,7 +69,7 @@ func getNotFoundPageContent() []byte {
func NotFoundResponse() *http.Response {
header := make(http.Header)
header.Set("server", "frp/"+version.Full())
header.Set("server", "kanhole/"+version.Full())
header.Set("Content-Type", "text/html")
content := getNotFoundPageContent()
+3 -3
View File
@@ -21,9 +21,9 @@ import (
"github.com/fatedier/golib/errors"
"github.com/fatedier/frp/pkg/util/log"
netpkg "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/pkg/util/xlog"
"kanhole/pkg/util/log"
netpkg "kanhole/pkg/util/net"
"kanhole/pkg/util/xlog"
)
type RouteInfo string
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"k8s.io/utils/clock"
"github.com/fatedier/frp/pkg/util/util"
"kanhole/pkg/util/util"
)
type BackoffFunc func(previousDuration time.Duration, previousConditionError bool) time.Duration
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"cmp"
"slices"
"github.com/fatedier/frp/pkg/util/log"
"kanhole/pkg/util/log"
)
type LogPrefix struct {