feat(worker): add '-4' option to rsync when 'use_ipv6' is false

This commit is contained in:
bigeagle 2017-09-06 23:22:55 +08:00
parent 28545d61e7
commit d536aca2ac

View File

@ -49,6 +49,8 @@ func newRsyncProvider(c rsyncConfig) (*rsyncProvider, error) {
if c.useIPv6 { if c.useIPv6 {
options = append(options, "-6") options = append(options, "-6")
} else {
options = append(options, "-4")
} }
if c.excludeFile != "" { if c.excludeFile != "" {