From de5501a6e1d321b325f47f58f8983f88c2519b28 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Fri, 26 Apr 2024 06:08:10 +0200 Subject: [PATCH] Remove network-test command --- cmd/zurg/main.go | 15 ++------------- config.example.yml | 5 ----- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/cmd/zurg/main.go b/cmd/zurg/main.go index 9208208..86768e2 100644 --- a/cmd/zurg/main.go +++ b/cmd/zurg/main.go @@ -9,8 +9,7 @@ import ( ) func main() { - var configPath string // Variable to hold the config path - var netTestType string // Variable to hold the network test type + var configPath string // Variable to hold the config path var rootCmd = &cobra.Command{ Use: "zurg", @@ -30,16 +29,6 @@ func main() { }, } - var networkTestCmd = &cobra.Command{ - Use: "network-test", - Short: "Run a network test", - Run: func(cmd *cobra.Command, args []string) { - internal.NetworkTest(netTestType) // Pass the network test type to NetworkTest - }, - } - // Adding a flag for network test type with default value "both" - networkTestCmd.Flags().StringVarP(&netTestType, "type", "t", "both", "network test type (ipv4, ipv6, both)") - var clearDownloadsCmd = &cobra.Command{ Use: "clear-downloads", Short: "Clear all downloads (unrestricted links) in your account", @@ -56,7 +45,7 @@ func main() { }, } - rootCmd.AddCommand(versionCmd, networkTestCmd, clearDownloadsCmd, clearTorrentsCmd) + rootCmd.AddCommand(versionCmd, clearDownloadsCmd, clearTorrentsCmd) if err := rootCmd.Execute(); err != nil { fmt.Println(err) diff --git a/config.example.yml b/config.example.yml index badbd3f..397e6b8 100644 --- a/config.example.yml +++ b/config.example.yml @@ -60,11 +60,6 @@ network_buffer_size: 1048576 # 1 MiB # false = zurg will stream the file serve_from_rclone: false -# true = zurg will check if the link is really working -# only relevant if serve_from_rclone is set to true -# as it already does this all the time if serve_from_rclone is false -verify_download_link: true - # force connect to real-debrid ipv6 addresses # useful if you are blocked force_ipv6: false