resolve closer stuff
This commit is contained in:
parent
d045bf50f8
commit
fb352512ec
3 changed files with 24 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
README.md.asc
|
README.md.asc
|
||||||
eeProxy
|
eeProxy
|
||||||
|
eeProxy.app
|
||||||
|
eeProxy.exe
|
||||||
|
|
20
Makefile
20
Makefile
|
@ -1,6 +1,19 @@
|
||||||
|
|
||||||
|
GO_COMPILER_OPTS = -a -tags netgo -ldflags '-w -extldflags "-static"'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build
|
go build $(GO_COMPILER_OPTS)
|
||||||
|
|
||||||
|
all: linux osx windows
|
||||||
|
|
||||||
|
linux:
|
||||||
|
GOOS=linux go build $(GO_COMPILER_OPTS) -o eeProxy
|
||||||
|
|
||||||
|
osx:
|
||||||
|
GOOS=darwin go build $(GO_COMPILER_OPTS) -o eeProxy.app
|
||||||
|
|
||||||
|
windows:
|
||||||
|
GOOS=windows go build $(GO_COMPILER_OPTS) -o eeProxy.exe
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
find . -name '*.go' -exec gofmt -w {} \;
|
find . -name '*.go' -exec gofmt -w {} \;
|
||||||
|
@ -10,3 +23,8 @@ clean:
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
go get -u github.com/eyedeekay/eeproxy
|
go get -u github.com/eyedeekay/eeproxy
|
||||||
|
|
||||||
|
test:
|
||||||
|
mkdir -p testdir && cd testdir && \
|
||||||
|
../eeProxy
|
||||||
|
|
||||||
|
|
|
@ -80,9 +80,9 @@ func (m Conn) Cleanup() error {
|
||||||
if err := m.SAMConn.Close(); err != nil {
|
if err := m.SAMConn.Close(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := m.StreamSession.Close(); err != nil {
|
//if err := m.StreamSession.Close(); err != nil {
|
||||||
return err
|
//return err
|
||||||
}
|
//}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue