mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
fix(server/portforward): use port and ports for both single port and multiple ports forwarded
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user