Skip to content

Commit

Permalink
adc: fix zlib issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Mar 17, 2019
1 parent f1ce6b1 commit ead8866
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions adc/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ func Ping(ctx context.Context, addr string, conf PingConfig) (*PingHubInfo, erro
}
switch cmd := cmd.(type) {
case *InfoPacket:
if cmd.Name == (ZOn{}).Cmd() {
err = c.read.ActivateZlib()
if err != nil {
return &hub, err
}
continue
}
switch stage {
case hubInfo:
// waiting for hub info
Expand Down
1 change: 1 addition & 0 deletions cmd/dctor/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ github.com/direct-connect/go-dc v0.3.2/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik
github.com/direct-connect/go-dc v0.3.3/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik+2t0R8b4+MdI=
github.com/direct-connect/go-dc v0.3.4-0.20190316230557-880b4b89dfc9/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik+2t0R8b4+MdI=
github.com/direct-connect/go-dc v0.4.0/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik+2t0R8b4+MdI=
github.com/direct-connect/go-dc v0.4.1/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik+2t0R8b4+MdI=
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require (
github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7 // indirect
github.com/dgraph-io/badger v1.5.4 // indirect
github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f // indirect
github.com/direct-connect/go-dc v0.4.0
github.com/direct-connect/go-dc v0.4.1
github.com/go-irc/irc v2.1.0+incompatible
github.com/gogo/protobuf v1.2.1 // indirect
github.com/golang/protobuf v1.3.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ github.com/direct-connect/go-dc v0.3.4-0.20190316230557-880b4b89dfc9 h1:rlxWiEzN
github.com/direct-connect/go-dc v0.3.4-0.20190316230557-880b4b89dfc9/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik+2t0R8b4+MdI=
github.com/direct-connect/go-dc v0.4.0 h1:zqvrPiUS3FuOZk9pfhl2dCD7si9nV169fWo8a8Ah6SY=
github.com/direct-connect/go-dc v0.4.0/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik+2t0R8b4+MdI=
github.com/direct-connect/go-dc v0.4.1 h1:PXZU+ziv7lFxnWw3Wpmg+Ldx9mzcUsiYBfjtuZ+Q+eg=
github.com/direct-connect/go-dc v0.4.1/go.mod h1:AwUTf54jhNPJvs+QNHoZxEb3p0LS8ik+2t0R8b4+MdI=
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package version

const (
Name = "go-dcpp"
Vers = "0.8.15"
Vers = "0.8.16"
)

0 comments on commit ead8866

Please sign in to comment.