resolve closer stuff

This commit is contained in:
idk 2018-12-25 05:08:54 -05:00
parent d045bf50f8
commit fb352512ec
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
3 changed files with 24 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
README.md.asc README.md.asc
eeProxy eeProxy
eeProxy.app
eeProxy.exe

View file

@ -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

View file

@ -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
} }