*I wrote something like this in a gomobile project:* *...* *handler := http.NewServeMux()* *...* *handler.HandleFunc(url, onReq)*
*...* *func onReq(w http.ResponseWriter, r *http.Request) {* * fmt.Println(r.URL.String())}* *...* *Then I found when this program run on Android device, the URL was just without host, but printed something like:* *...* */func/test* *...* *And I also found getIP func didn't work either.* *Does anyone know what is the problem on that?* *Permission? But my Network Access Permissioned code worked fine in Java, I got no idea on that.* -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9982b5b6-84b5-4a9a-aa66-a9e509283a8cn%40googlegroups.com.