Merge branch 'ipv6' of https://github.com/stacktic/ftp into stacktic-ipv6

Conflicts:
	ftp.go
This commit is contained in:
Julien Laffaye
2015-08-18 18:52:29 +02:00
2 changed files with 32 additions and 10 deletions

View File

@@ -139,3 +139,23 @@ func TestMultiline(t *testing.T) {
c.Quit()
}
// antioche.antioche.eu.org with IPv6
func TestConnIPv6(t *testing.T) {
c, err := Connect("[2001:660:3302:282a:204:75ff:fe9f:9e11]:21")
if err != nil {
t.Fatal(err)
}
err = c.Login("anonymous", "anonymous")
if err != nil {
t.Fatal(err)
}
_, err = c.List(".")
if err != nil {
t.Error(err)
}
c.Quit()
}