mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 21:28:22 +08:00
25 lines
344 B
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 {
|
|
|
|
}
|
|
} |