OperatorFoundation / shapeshifter-dispatcher

Shapeshifter Dispatcher converts Pluggable Transports that implement the Go API from the Pluggable Transports 2.1 specification into proxies usable by applications. Several proxy modes are provided, including proxying of both TCP and UDP traffic.
https://OperatorFoundation.org/
MIT License
177 stars 28 forks source link

unknow field 'Dialer' #20

Closed meskio closed 5 years ago

meskio commented 5 years ago

The current code in master doesn't compile:

/shapeshifter-dispatcher]$ go build
# github.com/OperatorFoundation/shapeshifter-dispatcher/transports
../transports/transports.go:144:3: unknown field 'Dialer' in struct literal of type obfs4.Transport

It looks like there was a Dialer introduced in 770bc14548a6a48ccbc8be0f0583122cf1dc6f6e to the obfs4.Transport struct, but it hasn't being added to shapeshifter-transports.

anarcat commented 5 years ago

workaround:

go get -u -v github.com/OperatorFoundation/shapeshifter-dispatcher/shapeshifter-dispatcher
# observe failure
cd $GOPATH/src/github.com/OperatorFoundation/shapeshifter-dispatcher/
git reset --hard 3eee4e2
cd shapeshifter-dispatcher
go build

win!

anarcat commented 5 years ago

workaround if you don't want to observe the failure:

mkdir -p $GOPATH/src/github.com/OperatorFoundation/ &&
cd $GOPATH/src/github.com/OperatorFoundation/ &&
git clone https://github.com/OperatorFoundation/shapeshifter-dispatcher.git &&
cd shapeshifter-dispatcher/shapeshifter-dispatcher &&
git reset --hard 3eee4e2 &&
go get .
CryptoSax commented 5 years ago

There was also a bit of unpushed code in obfs4 so that may have had something to do with it. It has been pushed so everything should work now! Thank you for letting me know!