Fix missing omitempty for NTP server fields

This commit is contained in:
世界 committed 2023-12-05 18:32:21 +08:00
1 parent 0ef268637e
commit cffc07579d
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -1,9 +1,10 @@
package option
type NTPOptions struct {
Enabled bool `json:"enabled"`
Enabled bool `json:"enabled,omitempty"`
Server string `json:"server,omitempty"`
ServerPort uint16 `json:"server_port,omitempty"`
Interval Duration `json:"interval,omitempty"`
WriteToSystem bool `json:"write_to_system,omitempty"`
ServerOptions
DialerOptions
}