fix(server/portforward): use port and ports for both single port and multiple ports forwarded

This commit is contained in:
Quentin McGaw
2026-03-29 01:20:13 +00:00
parent 5b88c76a14
commit 763c5be119
2 changed files with 4 additions and 12 deletions
+1 -4
View File
@@ -25,11 +25,8 @@ func (sw *statusWrapper) getStatus() (status models.LoopStatus, err error) {
}
}
type portWrapper struct { // TODO v4 remove
Port uint16 `json:"port"`
}
type portsWrapper struct {
Port uint16 `json:"port"` // TODO v4 remove
Ports []uint16 `json:"ports"`
}