I will be lint free!

This commit is contained in:
skedar46
2017-06-22 23:47:01 -07:00
parent 3054ed9f02
commit c46a521ea6
2 changed files with 5 additions and 4 deletions

View File

@@ -22,7 +22,8 @@ const ( // ASCII chars
startOfHeaderByte uint8 = 1 //SOH
startOfDataByte = 2 //STX
SupportedSubProtocol string = "sac-sock"
//The official sacrificial-socket sub protocol
SubProtocol string = "sac-sock"
)
type event struct {
@@ -194,7 +195,7 @@ func (serv *SocketServer) loop(ws *websocket.Conn) {
func protocolSupported(conf *websocket.Config) bool {
for _, p := range conf.Protocol {
if p == SupportedSubProtocol {
if p == SubProtocol {
return true
}
}