feat: 支持多网卡模式

This commit is contained in:
Mmx
2021-12-03 19:59:42 +08:00
parent a595de3ed1
commit ddaac2d155
11 changed files with 132 additions and 33 deletions

View File

@@ -13,10 +13,11 @@ type Guardian struct {
}
type Settings struct {
Timeout uint `json:"timeout"`
DemoMode bool `json:"demo_mode"`
Guardian Guardian
Daemon Daemon
Timeout uint `json:"timeout"`
Interfaces string `json:"interfaces"`
DemoMode bool `json:"demo_mode"`
Guardian Guardian
Daemon Daemon
}
type Config struct {

8
models/eth.go Normal file
View File

@@ -0,0 +1,8 @@
package srunModels
import "net"
type Eth struct {
Name string
Addr net.Addr
}