mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-14 02:21:30 +01:00
19 lines
220 B
Go
19 lines
220 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
smegdns "github.com/tim-beatham/wgmesh/pkg/dns"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
server, err := smegdns.NewDns(53)
|
||
|
|
||
|
if err != nil {
|
||
|
log.Fatal(err.Error())
|
||
|
}
|
||
|
|
||
|
defer server.Close()
|
||
|
server.Listen()
|
||
|
}
|