Remove network-test command
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var configPath string // Variable to hold the config path
|
var configPath string // Variable to hold the config path
|
||||||
var netTestType string // Variable to hold the network test type
|
|
||||||
|
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: "zurg",
|
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{
|
var clearDownloadsCmd = &cobra.Command{
|
||||||
Use: "clear-downloads",
|
Use: "clear-downloads",
|
||||||
Short: "Clear all downloads (unrestricted links) in your account",
|
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 {
|
if err := rootCmd.Execute(); err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
|
|||||||
@@ -60,11 +60,6 @@ network_buffer_size: 1048576 # 1 MiB
|
|||||||
# false = zurg will stream the file
|
# false = zurg will stream the file
|
||||||
serve_from_rclone: false
|
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
|
# force connect to real-debrid ipv6 addresses
|
||||||
# useful if you are blocked
|
# useful if you are blocked
|
||||||
force_ipv6: false
|
force_ipv6: false
|
||||||
|
|||||||
Reference in New Issue
Block a user