Patch: add --auth-bypass option to transmission-daemon (2.92)

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
slyman
Posts: 1
Joined: Sun Jun 05, 2016 4:29 am

Patch: add --auth-bypass option to transmission-daemon (2.92)

Postby slyman » Sun Jun 05, 2016 6:04 am

http://pastebin.com/A6MXitKh

Patch for 2.92 to add --auth-bypass option to transmission-daemon

This option sets a whitelist of ip addresses which do not require authentication even if --auth|-t is set.

Usage:

--auth-bypass <ip address>[,<ip address> ...]

Example usage:

--auth-bypass 127.0.0.1

The above option would allow clients, e.g. transmission-remote, on localhost to avoid having to authenticate.

The reasoning behind this patch is to avoid the need to hardcode passwords in scripts that use transmission-remote on localhost, while requiring passwords for clients on other hosts. I thought it better to allow admins to make the decision to allow other ip as well (or, if you prefer, be as insecure as they want) by using a whitelist rather than hardcoding 127.0.0.1.

The following parameters are added to settings.json:

rpc-auth-bypass-enabled = true or false
rpc-auth-bypass-whitelist = comma seperated ip addresses like rpc-whitelist

Return to “Requests”