Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
453ee9c1
Commit
453ee9c1
authored
9 years ago
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
parent
70f89cfc
master
stable/16.1
stable/16.7
stable/17.1
stable/17.7
17.7.r2
17.7.r1
17.7.r
17.7.b
17.7.a
17.1.11
17.1.10
17.1.9
17.1.8
17.1.7
17.1.6
17.1.5
17.1.4
17.1.3
17.1.2
17.1.1
17.1
17.1.r1
17.1.r
17.1.b
17.1.a
16.7.14
16.7.13
16.7.12
16.7.11
16.7.10
16.7.9
16.7.8
16.7.7
16.7.6
16.7.5
16.7.4
16.7.3
16.7.2
16.7.1
16.7
16.7.r
16.7.b
16.7.a
16.1.20
16.1.19
16.1.18
16.1.17
16.1.16
16.1.15
16.1.14
16.1.13
16.1.12
16.1.11
16.1.10
16.1.9
16.1.8
16.1.7
16.1.6
16.1.5
16.1.4
16.1.3
16.1.2
16.1.1
16.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
firewall_virtual_ip_edit.php
src/www/firewall_virtual_ip_edit.php
+8
-8
No files found.
src/www/firewall_virtual_ip_edit.php
View file @
453ee9c1
...
@@ -40,11 +40,11 @@ function find_last_used_vhid() {
...
@@ -40,11 +40,11 @@ function find_last_used_vhid() {
global
$config
;
global
$config
;
$vhid
=
0
;
$vhid
=
0
;
if
(
isset
(
$config
[
'virtualip'
][
'vip'
]))
{
if
(
isset
(
$config
[
'virtualip'
][
'vip'
]))
{
foreach
(
$config
[
'virtualip'
][
'vip'
]
as
$vip
)
{
foreach
(
$config
[
'virtualip'
][
'vip'
]
as
$vip
)
{
if
(
!
empty
(
$vip
[
'vhid'
])
&&
$vip
[
'vhid'
]
>
$vhid
)
{
if
(
!
empty
(
$vip
[
'vhid'
])
&&
$vip
[
'vhid'
]
>
$vhid
)
{
$vhid
=
$vip
[
'vhid'
];
$vhid
=
$vip
[
'vhid'
];
}
}
}
}
}
}
return
$vhid
;
return
$vhid
;
}
}
...
@@ -109,12 +109,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -109,12 +109,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors
[]
=
gettext
(
"A valid IP address must be specified."
);
$input_errors
[]
=
gettext
(
"A valid IP address must be specified."
);
}
else
{
}
else
{
if
(
$pconfig
[
'mode'
]
==
'carp'
)
{
if
(
$pconfig
[
'mode'
]
==
'carp'
)
{
$ignore_if
=
$pconfig
[
'interface'
]
.
"_vip
{
$pconfig
[
'vhid'
]
}
"
;
$ignore_if
=
$pconfig
[
'interface'
]
.
"_vip
{
$pconfig
[
'vhid'
]
}
"
;
}
else
{
}
else
{
$ignore_if
=
$pconfig
[
'interface'
];
$ignore_if
=
$pconfig
[
'interface'
];
}
}
if
(
is_ipaddr_configured
(
$pconfig
[
'subnet'
],
$ignore_if
))
{
if
(
is_ipaddr_configured
(
$pconfig
[
'subnet'
],
$ignore_if
))
{
$input_errors
[]
=
gettext
(
"This IP address is being used by another interface or VIP."
);
$input_errors
[]
=
gettext
(
"This IP address is being used by another interface or VIP."
);
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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