File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ require (
43
43
)
44
44
45
45
require (
46
- github.com/aliyun/alibaba-cloud-sdk-go v1.62.679 // indirect
46
+ github.com/aliyun/alibaba-cloud-sdk-go v1.62.680 // indirect
47
47
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
48
48
github.com/cloudflare/cloudflare-go v0.88.0 // indirect
49
49
github.com/felixge/httpsnoop v1.0.4 // indirect
@@ -61,8 +61,8 @@ require (
61
61
github.com/sagikazarmark/locafero v0.4.0 // indirect
62
62
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
63
63
github.com/sourcegraph/conc v0.3.0 // indirect
64
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.859 // indirect
65
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.859 // indirect
64
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.860 // indirect
65
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.860 // indirect
66
66
github.com/toorop/go-dkim v0.0.0-20240103092955-90b7d1423f92 // indirect
67
67
github.com/yusufpapurcu/wmi v1.2.4 // indirect
68
68
go.uber.org/multierr v1.11.0 // indirect
Original file line number Diff line number Diff line change @@ -43,21 +43,21 @@ func LinkTunnel(w http.ResponseWriter, r *http.Request) {
43
43
// 判断session-token的值
44
44
cookie , err := r .Cookie ("webvpn" )
45
45
if err != nil || cookie .Value == "" {
46
- w .WriteHeader (http .StatusBadRequest )
46
+ w .WriteHeader (http .StatusUnauthorized )
47
47
return
48
48
}
49
49
50
50
sess := sessdata .SToken2Sess (cookie .Value )
51
51
if sess == nil {
52
- w .WriteHeader (http .StatusBadRequest )
52
+ w .WriteHeader (http .StatusUnauthorized )
53
53
return
54
54
}
55
55
56
56
// 开启link
57
57
cSess := sess .NewConn ()
58
58
if cSess == nil {
59
59
log .Println (err )
60
- w .WriteHeader (http .StatusBadRequest )
60
+ w .WriteHeader (http .StatusUnauthorized )
61
61
return
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments