Renamed to go-dmr

This commit is contained in:
Wijnand Modderman-Lenstra 2015-12-08 14:42:45 +01:00
parent f5e7f26850
commit 851da4775f
3 changed files with 6 additions and 3 deletions

View file

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"pd0mz/dmr/homebrew" "pd0mz/go-dmr/homebrew"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )

View file

@ -4,7 +4,7 @@ import (
"flag" "flag"
"io/ioutil" "io/ioutil"
"os" "os"
"pd0mz/dmr/ipsc" "pd0mz/go-dmr/ipsc"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )

View file

@ -389,8 +389,11 @@ func (l *Link) parse(addr *net.UDPAddr, data []byte) {
} }
case authDone: case authDone:
if len(data) < 4 {
return
}
switch { switch {
case bytes.Equal(data, DMRData): case bytes.Equal(data[:4], DMRData):
if l.stream == nil { if l.stream == nil {
return return
} }