feat: 支持多网卡模式
This commit is contained in:
@@ -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
8
models/eth.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package srunModels
|
||||
|
||||
import "net"
|
||||
|
||||
type Eth struct {
|
||||
Name string
|
||||
Addr net.Addr
|
||||
}
|
||||
Reference in New Issue
Block a user