Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix logrus import path #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/*
2 changes: 1 addition & 1 deletion rconsocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
)

type rconSocket struct {
Expand Down
2 changes: 1 addition & 1 deletion samples/rcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"time"

logrus "github.com/Sirupsen/logrus"
logrus "github.com/sirupsen/logrus"
"github.com/sostronk/go-steam"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"os"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
"github.com/sostronk/go-steam"
)

Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

logrus "github.com/Sirupsen/logrus"
logrus "github.com/sirupsen/logrus"
)

// The DialFn type is an adapter to allow the use of
Expand Down
3 changes: 3 additions & 0 deletions udpsocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@ func (s *udpSocket) receive() ([]byte, error) {
if buf[0] == 0xFE {
return nil, errors.New("steam: cannot handle split packets")
}
if len(buf) < 4 {
return nil, errors.New("steam: invalid buffer size")
}
return buf[4:], nil
}