We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc5325 commit 518451aCopy full SHA for 518451a
main.go
@@ -139,7 +139,7 @@ func main() {
139
}
140
141
if *hasDownloadFile {
142
- http.ListenAndServe(*networkPort, http.FileServer(http.Dir(filepath.Dir(*sketchPath))))
+ go http.ListenAndServe(":"+*networkPort, http.FileServer(http.Dir(filepath.Dir(*sketchPath))))
143
// find my ip if not specified
144
ip := getMyIP(net.ParseIP(*networkAddress))
145
url := "http://" + ip.String() + ":" + *networkPort + "/" + filepath.Base(*sketchPath)
@@ -257,7 +257,6 @@ func getMyIP(otherip net.IP) net.IP {
257
case *net.IPAddr:
258
ips = append(ips, v.IP)
259
260
- // process IP address
261
262
263
return nil
0 commit comments