Remove network-test command

This commit is contained in:
Ben Sarmiento
2024-04-26 06:08:10 +02:00
parent 2ff754e06e
commit de5501a6e1
2 changed files with 2 additions and 18 deletions

View File

@@ -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)

View File

@@ -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