Commit dc3060b
Handle custom ports defined in the hostname (#44)
* Handle custom ports defined in the hostname
* Improve detection of custom ports when connecting
Perstitent connections are defined by prepending the hostname with "p:".
This would have been detected as the start of a custom port and broken
the connection.
A better solution is to detect the port at the end of host name using
regex.
* Never detect a prefix of "p:" as a hostname
This improves edge cases when using a persistent connection with a
numeric hostname. For example: "p:253"1 parent 2236e6f commit dc3060b
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | | - | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
85 | | - | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
0 commit comments