Skip to content

Commit

Permalink
Cancel proxy port, since it no useful.
Browse files Browse the repository at this point in the history
Commit by Andy.Zhang
Email: [email protected]
  • Loading branch information
andy-zhangtao committed Jul 6, 2017
1 parent 947d446 commit 0ecf440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions cmd/shadowsocks-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,8 @@ func main() {

r.HandleFunc("/version", handler.GetVersion).Methods(http.MethodGet)

p := mux.NewRouter()
p.HandleFunc("/proxy", handler.ProxyConnHandler).Methods(http.MethodGet)
p.HandleFunc("/proxy/{id}", handler.ProxyInfo).Methods(http.MethodGet)
go func() {
log.Println(http.ListenAndServe(":8001", p))
}()
r.HandleFunc("/proxy", handler.ProxyConnHandler).Methods(http.MethodGet)
r.HandleFunc("/proxy/{id}", handler.ProxyInfo).Methods(http.MethodGet)
methodsOk := handlers.AllowedMethods([]string{"GET", "HEAD", "POST", "PUT", "OPTIONS"})
headersOk := handlers.AllowedHeaders([]string{"X-Requested-With"})
originsOk := handlers.AllowedOrigins([]string{"*"})
Expand Down
2 changes: 1 addition & 1 deletion shadowsocks/handler/versionHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// GetVersion 获取当前版本信息
func GetVersion(w http.ResponseWriter, r *http.Request) {

dv := "Dev Version: " + "r53+4M f34cecd"
dv := "Dev Version: " + "r53+5M 947d446"
rv := " Release Version: 0.2"
Sandstorm.HTTPSuccess(w, dv+rv)
}

0 comments on commit 0ecf440

Please sign in to comment.