mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user