gf/geg/net/raft.go

25 lines
344 B
Go

package main
import (
"gitee.com/johng/gf/g/net/graft"
"gitee.com/johng/gf/g/net/gip"
"log"
)
func main() {
ips, err := gip.IntranetIP()
if err != nil {
log.Println(err)
return
}
for _, ip := range ips {
//fmt.Println(ip)
graft.NewServerByIp(ip).Run()
}
select {
}
}