kopia lustrzana https://github.com/cyoung/stratux
Gofmt.
rodzic
cfd8b9fcaf
commit
1ba6f744ea
|
@ -17,7 +17,6 @@ import (
|
|||
const (
|
||||
stratuxVersion = "v0.1"
|
||||
configLocation = "/etc/stratux.conf"
|
||||
ipadAddr = "192.168.10.255:4000" // Port 4000 for FreeFlight RANGR.
|
||||
managementAddr = "127.0.0.1:9110"
|
||||
maxDatagramSize = 8192
|
||||
UPLINK_BLOCK_DATA_BITS = 576
|
||||
|
@ -361,7 +360,6 @@ type settings struct {
|
|||
ES_Enabled bool
|
||||
GPS_Enabled bool
|
||||
GDLOutputPorts []uint16
|
||||
|
||||
}
|
||||
|
||||
type status struct {
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"time"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
"strconv"
|
||||
"log"
|
||||
"net"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
var messageQueue chan []byte
|
||||
var outSockets map[string]*net.UDPConn
|
||||
var dhcpLeases map[string]string
|
||||
|
||||
|
||||
// Read the "dhcpd.leases" file and parse out IP/hostname.
|
||||
func getDHCPLeases() (map[string]string, error) {
|
||||
dat, err := ioutil.ReadFile("/var/lib/dhcp/dhcpd.leases")
|
||||
|
|
Ładowanie…
Reference in New Issue