Skip to content

Commit efba278

Browse files
committed
Fix #170 #161
1 parent a60f4e7 commit efba278

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ssvpn_windows.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ package goflyway
22

33
import (
44
"net"
5-
6-
"github.com/coyove/goflyway/pkg/trafficmon"
75
)
86

97
func vpnDial(address string) (net.Conn, error) {
108
panic("not on Windows")
119
}
1210

13-
func sendTrafficStats(stat *trafficmon.Survey) error {
11+
func sendTrafficStats(recv, send int64) error {
1412
return nil
1513
}

toh/server_conn.go

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ func newServerConn(idx uint64, ln *Listener) *ServerConn {
4646
func (l *Listener) randomReply(w http.ResponseWriter, r *http.Request) {
4747
v.Vprint("listener random reply: ", r)
4848

49+
r.Header.Del("Content-Length")
50+
4951
if l.OnBadRequest != nil {
5052
l.OnBadRequest(w, r)
5153
return

0 commit comments

Comments
 (0)