Skip to content

Commit 4a931ae

Browse files
committed
fix: omit empty seed enabled and announce list
1 parent 429e618 commit 4a931ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

option/water.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type WATEROutboundOptions struct {
4848
// WATEROutboundSeedOptions specifies the seed configuration options
4949
type WATEROutboundSeedOptions struct {
5050
// SeedEnabled enables seeding the used transport
51-
SeedEnabled bool `json:"seed_enabled"`
51+
SeedEnabled bool `json:"seed_enabled,omitempty"`
5252
// AnnounceList specifies which trackers should be used to announce the file
53-
AnnounceList [][]string `json:"announce_list"`
53+
AnnounceList [][]string `json:"announce_list,omitempty"`
5454
}

0 commit comments

Comments
 (0)