mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 06:52:21 +08:00
Add omitempty for listen_port
This commit is contained in:
parent
70b4577dbe
commit
c57ea9e47c
|
@ -92,7 +92,7 @@ type InboundOptions struct {
|
|||
|
||||
type ListenOptions struct {
|
||||
Listen ListenAddress `json:"listen"`
|
||||
ListenPort uint16 `json:"listen_port"`
|
||||
ListenPort uint16 `json:"listen_port,omitempty"`
|
||||
TCPFastOpen bool `json:"tcp_fast_open,omitempty"`
|
||||
UDPTimeout int64 `json:"udp_timeout,omitempty"`
|
||||
InboundOptions
|
||||
|
|
Loading…
Reference in New Issue
Block a user