mirror of
https://github.com/fatedier/frp.git
synced 2025-07-22 13:52:05 +07:00
test: update
This commit is contained in:
15
tests/http_server.go
Normal file
15
tests/http_server.go
Normal file
@ -0,0 +1,15 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func StartHttpServer() {
|
||||
http.HandleFunc("/", request)
|
||||
http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", 10702), nil)
|
||||
}
|
||||
|
||||
func request(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(HTTP_RES_STR))
|
||||
}
|
Reference in New Issue
Block a user