http: add --user-agent option. close #1557

This commit is contained in:
Alex McGrath Kraak
2017-08-17 05:49:27 +01:00
committed by Stefan
parent b510c70c1e
commit 2cc9071791
3 changed files with 2 additions and 3 deletions

View File

@@ -101,6 +101,7 @@ var (
tpsLimitBurst = IntP("tpslimit-burst", "", 1, "Max burst of transactions for --tpslimit.")
bindAddr = StringP("bind", "", "", "Local address to bind to for outgoing connections, IPv4, IPv6 or name.")
disableFeatures = StringP("disable", "", "", "Disable a comma separated list of features. Use help to see a list.")
userAgent = StringP("user-agent", "", "rclone/"+Version, "Set the user-agent to a specified string. The default is rclone/ version")
logLevel = LogLevelNotice
statsLogLevel = LogLevelInfo
bwLimit BwTimetable