Browse Source

jtp: add note about simplifying host production

Benton Edmondson 1 year ago
parent
commit
25ed37725c
1 changed files with 1 additions and 0 deletions
  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"
 		port = "443"
 	}
 	}
 
 
+	// TODO: link.Host may work instead of needing net.JoinHostPort
 	hostport := net.JoinHostPort(link.Hostname(), port)
 	hostport := net.JoinHostPort(link.Hostname(), port)
 
 
 	connection, err := dialer.Dial("tcp", hostport)
 	connection, err := dialer.Dial("tcp", hostport)