initial commit

This commit is contained in:
David Zhao
2020-10-03 22:51:01 -07:00
parent b5a30ab6e1
commit f0b1eb63df
7 changed files with 177 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package main
import (
"fmt"
"github.com/livekit/livekit-server/pkg/node"
)
func main() {
n, err := node.NewLocalNode()
if err != nil {
panic(err)
}
if err := n.DiscoverNetworkInfo(); err != nil {
panic(err)
}
fmt.Println("my IP", n.IP)
}