Commit b249f82
committed
Make URL construction IPv6-compatible
While browsing the code, I spotted this line that would break if the
IP address was IPv6. Use the Go standard library helper to safely join
a host and port, which knows how to handle IPv6 properly.
Signed-off-by: Russell Bryant <rbryant@redhat.com>1 parent 12dbb82 commit b249f82
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
0 commit comments