Add env vars for RPC user and password

This commit is contained in:
Jeffrey Serio 2023-07-19 07:56:58 -05:00
parent 7bbf0d0c1c
commit 70f4d385fc
1 changed files with 1 additions and 1 deletions

View File

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