mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Added permission rescue for iptable #2348
This commit is contained in:
parent
56d1cc6e76
commit
f56894d973
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ module Iptable
|
|||
end
|
||||
rescue Errno::ENOENT => e
|
||||
logger.error "ERROR: cannot open #{counter_proc}: #{e}"
|
||||
rescue Errno::EACCES => e
|
||||
logger.error "ERROR: no permission #{counter_proc}: #{e}"
|
||||
rescue IOError => e
|
||||
logger.error "ERROR: cannot write #{ip} to #{counter_proc}: #{e}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue