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
+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