浏览代码

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

bigeagle 8 年之前
父节点
当前提交
d536aca2ac
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      worker/rsync_provider.go

+ 2 - 0
worker/rsync_provider.go

@@ -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 != "" {