fix: Port forward should ignore coder ports (#7645)

Ports opened by coder agent should be ignored in the listening ports
map.
This commit is contained in:
Steven Masley
2023-05-23 17:14:05 +02:00
committed by GitHub
parent cd416c86dd
commit d203f5259d
2 changed files with 12 additions and 8 deletions
+6
View File
@@ -46,6 +46,12 @@ func Test_extractPort(t *testing.T) {
urlString: "6060",
wantErr: true,
},
{
name: "127.0.0.1",
urlString: "127.0.0.1:2113",
want: 2113,
wantErr: false,
},
}
for _, tt := range tests {
tt := tt