mirror of
https://codeberg.org/hyperreal/go-torrent-helper
synced 2024-11-01 16:53:09 +01:00
Add env vars for RPC user and password
This commit is contained in:
parent
7bbf0d0c1c
commit
70f4d385fc
@ -97,7 +97,7 @@ func (l *ListCmd) Init(args []string) error {
|
||||
}
|
||||
|
||||
func (a *AddCmd) Run(d Distro) error {
|
||||
client, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), "", "", nil)
|
||||
client, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWD"), nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user