Skip to content

Commit fbc8a36

Browse files
committed
Reduce default interval to 28 seconds
/proc/sys/net/netfilter/nf_conntrack_udp_timeout in Linux is 30 seconds
1 parent 24baa26 commit fbc8a36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The SRV updater uses raw sockets. Therefore It needs root privilege or `CAP_NET_
2626
-fqdn string
2727
the hostname of the record you want to update (default "_service._tcp.example.com")
2828
-interval duration
29-
sending interval (default 1m)
29+
sending interval (default 28s)
3030
-key string
3131
private key (default "~/.ssh/id_ed25519")
3232
-priority uint

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020
flag.UintVar(&packet.Priority, "priority", 10, "the priority of the record you want to update")
2121
flag.UintVar(&packet.Weight, "weight", 1, "the weight of the record you want to update")
2222

23-
interval := flag.Duration("interval", time.Minute, "sending interval")
23+
interval := flag.Duration("interval", time.Second*28, "sending interval")
2424
keyPath := flag.String("key", "~/.ssh/id_ed25519", "private key")
2525
dstPort := flag.Int("dst-port", 55, "the destination port")
2626
dstHost := flag.String("dst-host", "dynv6.com", "the destination host")

0 commit comments

Comments
 (0)