Skip to content

Commit cc54060

Browse files
committed
Add placeholder flags to main.go without using them to prevent unused variable errors
1 parent 0aef00e commit cc54060

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

main.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,17 @@ func main() {
4040
v4Flag := flag.Bool("4", false, "Force IPv4 endpoint list (with --scan or engage.cloudflareclient.com:2408)")
4141
v6Flag := flag.Bool("6", false, "Force IPv6 endpoint list (with --scan or engage.cloudflareclient.com:2408)")
4242
connectTimeout := flag.Duration("connect-timeout", defaultConnectTimeout, "Timeout for initial connect (e.g. 15s, 1m, 15m); default 15m")
43+
rtt := flag.Bool("rtt", false, "placeholder flag, not used")
44+
reserved := flag.String("reserved", "", "placeholder flag, not used")
45+
dns := flag.String("dns", "", "placeholder flag, not used")
46+
testURL := flag.String("test-url", "", "placeholder flag, not used")
4347
flag.Parse()
4448

49+
_ = rtt
50+
_ = reserved
51+
_ = dns
52+
_ = testURL
53+
4554
if *v4Flag && *v6Flag {
4655
logMsg("ERROR", "both -4 and -6 provided", nil)
4756
os.Exit(1)

0 commit comments

Comments
 (0)