Merge pull request #33 from digineo/ipv6

Use localhost to test IPv6 connectivity
This commit is contained in:
Julien Laffaye 2015-08-18 23:07:04 +02:00
commit 23b395751d
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
# Used by Travis CI # Used by Travis CI
listen=YES listen=NO
listen_ipv6=YES
write_enable=YES write_enable=YES
dirmessage_enable=YES dirmessage_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty secure_chroot_dir=/var/run/vsftpd/empty

View File

@ -151,7 +151,7 @@ func TestConnIPv6(t *testing.T) {
t.Skip("skipping test in short mode.") t.Skip("skipping test in short mode.")
} }
c, err := DialTimeout("[2001:660:3302:282a:204:75ff:fe9f:9e11]:21", 5*time.Second) c, err := DialTimeout("[::1]:21", 5*time.Second)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }