Fix action type
This commit is contained in:
parent
f0c27d037c
commit
ca53ccf346
3 changed files with 25 additions and 22 deletions
|
|
@ -175,7 +175,7 @@ func (t *GVisor) Start() error {
|
|||
}
|
||||
})
|
||||
switch actionType := action.(type) {
|
||||
case *ActionReject:
|
||||
case *ActionBlock:
|
||||
// TODO: send icmp unreachable
|
||||
return true
|
||||
case *ActionDirect:
|
||||
|
|
@ -238,7 +238,7 @@ func (t *GVisor) Start() error {
|
|||
}
|
||||
})
|
||||
switch actionType := action.(type) {
|
||||
case *ActionReject:
|
||||
case *ActionBlock:
|
||||
// TODO: send icmp unreachable
|
||||
return true
|
||||
case *ActionDirect:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue