Skip to content

Commit

Permalink
验证key去掉了时间分钟部分
Browse files Browse the repository at this point in the history
修正了bat和sh文件中的可执行文件名
  • Loading branch information
ying32 committed Dec 9, 2017
1 parent 66d1248 commit 9a304c3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runcli.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ReverseProxy --tcpport=8284 --httpport=8080 --mode="client" --svraddr="127.0.0.1" --vkey="DKibZF5TXvic1g3kY"
rproxy --tcpport=8284 --httpport=8080 --mode="client" --svraddr="127.0.0.1" --vkey="DKibZF5TXvic1g3kY"
2 changes: 1 addition & 1 deletion runcli.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./ReverseProxy --tcpport=8284 --httpport=8080 --mode="client" --svraddr="127.0.0.1" --vkey="DKibZF5TXvic1g3kY"
./rproxy --tcpport=8284 --httpport=8080 --mode="client" --svraddr="127.0.0.1" --vkey="DKibZF5TXvic1g3kY"
2 changes: 1 addition & 1 deletion runsvr.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ReverseProxy --tcpport=8284 --httpport=8084 --mode="server" --vkey="DKibZF5TXvic1g3kY"
rproxy --tcpport=8284 --httpport=8084 --mode="server" --vkey="DKibZF5TXvic1g3kY"
2 changes: 1 addition & 1 deletion runsvr.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./ReverseProxy --tcpport=8284 --httpport=8084 --mode="server" --vkey="DKibZF5TXvic1g3kY"
./rproxy --tcpport=8284 --httpport=8084 --mode="server" --vkey="DKibZF5TXvic1g3kY"
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func badRequest(w http.ResponseWriter) {
}

func (s *TRPServer) httpserver() {
// google总是要请求这个,这里不要了!
// chrome总是要请求这个,这里不要了!
http.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
})
Expand Down
2 changes: 1 addition & 1 deletion verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import (

// 简单的一个校验值
func getverifyval() []byte {
b := sha1.Sum([]byte(time.Now().Format("2006-01-02 15:04") + *verifyKey))
b := sha1.Sum([]byte(time.Now().Format("2006-01-02 15") + *verifyKey))
return b[:]
}

0 comments on commit 9a304c3

Please sign in to comment.