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