From d536aca2ac42e74a0902546d28b7de0e7f639195 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Wed, 6 Sep 2017 23:22:55 +0800 Subject: [PATCH] feat(worker): add '-4' option to rsync when 'use_ipv6' is false --- worker/rsync_provider.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker/rsync_provider.go b/worker/rsync_provider.go index aafd761..8009714 100644 --- a/worker/rsync_provider.go +++ b/worker/rsync_provider.go @@ -49,6 +49,8 @@ func newRsyncProvider(c rsyncConfig) (*rsyncProvider, error) { if c.useIPv6 { options = append(options, "-6") + } else { + options = append(options, "-4") } if c.excludeFile != "" {