mirror of
https://codeberg.org/hyperreal/go-transmission-stats
synced 2024-11-01 08:43:10 +01:00
Use HTTPS
This commit is contained in:
parent
a3578c5767
commit
c15debc40a
@ -81,7 +81,11 @@ type TorrentStatsPageData struct {
|
||||
}
|
||||
|
||||
func main() {
|
||||
transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), nil)
|
||||
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,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
6
main.go
6
main.go
@ -83,7 +83,11 @@ 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"), nil)
|
||||
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,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user