From 5c4b7d72773ab330daad1f2fbe28ad4ad5851c78 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Mon, 24 Jul 2023 19:46:49 -0500 Subject: [PATCH] Remove AdvancedConfig --- html/main.go | 6 +----- main.go | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/html/main.go b/html/main.go index fdb0351..2663f4c 100644 --- a/html/main.go +++ b/html/main.go @@ -82,11 +82,7 @@ type TorrentStatsPageData struct { } func main() { - transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), - &transmissionrpc.AdvancedConfig{ - HTTPS: true, - Port: 443, - }) + transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), nil) if err != nil { log.Fatalln(err) } diff --git a/main.go b/main.go index 95db96c..88a1483 100644 --- a/main.go +++ b/main.go @@ -84,11 +84,7 @@ func main() { fmt.Println("20 text/gemini\r") fmt.Println("```") - transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), - &transmissionrpc.AdvancedConfig{ - HTTPS: true, - Port: 443, - }) + transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), nil) if err != nil { log.Fatalln(err) }