Explorar el Código

jtp: add note about simplifying host production

Benton Edmondson hace 1 año
padre
commit
25ed37725c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      jtp/jtp.go

+ 1 - 0
jtp/jtp.go

@@ -43,6 +43,7 @@ func Get(link *url.URL, accept string, tolerated []string, maxRedirects uint) (m
 		port = "443"
 	}
 
+	// TODO: link.Host may work instead of needing net.JoinHostPort
 	hostport := net.JoinHostPort(link.Hostname(), port)
 
 	connection, err := dialer.Dial("tcp", hostport)