| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 788976c commit b71d5de
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,7 +157,7 @@ class SocketAddress { | |||
| 157 | 157 | hostname: address, | |
| 158 | 158 | port, | |
| 159 | 159 | } = URLParse(`http://${input}`); | |
| 160 | - if (address.startsWith('[') && address.endsWith(']')) { | ||
| 160 | + if (address[0] === '[' && address[address.length - 1] === ']') { | ||
| 161 | 161 | return new SocketAddress({ | |
| 162 | 162 | address: address.slice(1, -1), | |
| 163 | 163 | port: port | 0, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments