hprose / hprose-golang

Hprose is a cross-language RPC. This project is Hprose for Golang.
MIT License
1.26k stars 205 forks source link

hprose golang2.0,http监听默认是tcp6 #74

Closed waterloopwm closed 2 years ago

waterloopwm commented 6 years ago
service := rpc.NewHTTPService()
service.Event = myServiceEvent{}
service.AddFunction("hello", hello)  
http.ListenAndServe(":5881", service)

默认监听是tcp6,怎么弄成tcp4

andot commented 6 years ago

这个hprose控制不了,你看看go默认的http包是怎么配置的吧。