Fix action type

This commit is contained in:
世界 2023-03-24 11:26:46 +08:00
parent f0c27d037c
commit ca53ccf346
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 25 additions and 22 deletions

View file

@ -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: