mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
fea: switch: do dnat.
This commit is contained in:
@@ -100,7 +100,7 @@ type Switch struct {
|
||||
hooks []Hook
|
||||
http *Http
|
||||
server libol.SocketServer
|
||||
worker map[string]api.Networker
|
||||
worker map[string]api.NetworkApi
|
||||
uuid string
|
||||
newTime int64
|
||||
out *libol.SubLogger
|
||||
@@ -111,7 +111,7 @@ func NewSwitch(c *co.Switch) *Switch {
|
||||
v := &Switch{
|
||||
cfg: c,
|
||||
fire: network.NewFireWallGlobal(c.FireWall),
|
||||
worker: make(map[string]api.Networker, 32),
|
||||
worker: make(map[string]api.NetworkApi, 32),
|
||||
server: server,
|
||||
newTime: time.Now().Unix(),
|
||||
hooks: make([]Hook, 0, 64),
|
||||
|
||||
Reference in New Issue
Block a user