Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
0eef0fda
Commit
0eef0fda
authored
Sep 28, 2021
by
Francesc Guasch
Browse files
refactor(ports): do not open if already open
parent
534c76bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain.pm
View file @
0eef0fda
...
...
@@ -3964,7 +3964,7 @@ sub _open_port($self, $user, $remote_ip, $local_ip, $local_port, $jump = 'ACCEPT
,
$local_ip
,
'
filter
',
$IPTABLES_CHAIN
,
$jump
,
,{'
protocol
'
=>
'
tcp
',
'
s_port
'
=>
0
,
'
d_port
'
=>
$local_port
});
$self
->
_vm
->
iptables
(
$self
->
_vm
->
iptables
_unique
(
A
=>
$IPTABLES_CHAIN
,
m => 'tcp'
,p =
>
'
tcp
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment