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
931efa68
Commit
931efa68
authored
Feb 27, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: fix all the whitespaces!
parent
14b71e38
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
21 deletions
+12
-21
captiveportal.inc
src/etc/inc/captiveportal.inc
+1
-1
openvpn.auth-user.php
src/etc/inc/openvpn.auth-user.php
+1
-1
rc.filter_synchronize
src/etc/rc.filter_synchronize
+2
-2
rc.initial
src/etc/rc.initial
+1
-1
configd_ctl.py
src/opnsense/service/configd_ctl.py
+0
-6
execute_command.py
src/opnsense/service/execute_command.py
+0
-3
rc.conf.d
src/opnsense/service/templates/OPNsense/Proxy/rc.conf.d
+1
-1
firewall_nat.php
src/www/firewall_nat.php
+6
-6
No files found.
src/etc/inc/captiveportal.inc
View file @
931efa68
...
...
@@ -241,7 +241,7 @@ function captiveportal_init_rules($reinit = false) {
$cpc
=
new
OPNsense\CaptivePortal\CPClient
();
if
(
$cpc
->
isEnabled
())
{
// load modules ( only if CP is enabled )
captiveportal_load_modules
();
captiveportal_load_modules
();
}
$cpc
->
reconfigure
();
unset
(
$cpc
);
...
...
src/etc/inc/openvpn.auth-user.php
View file @
931efa68
...
...
@@ -78,7 +78,7 @@ openlog("openvpn", LOG_ODELAY, LOG_AUTH);
if
(
count
(
$argv
)
>
6
)
{
$authmodes
=
explode
(
','
,
$argv
[
5
]);
$username
=
base64_decode
(
str_replace
(
'%3D'
,
'='
,
$argv
[
1
]));
$password
=
base64_decode
(
str_replace
(
'%3D'
,
'='
,
$argv
[
2
]));
$password
=
base64_decode
(
str_replace
(
'%3D'
,
'='
,
$argv
[
2
]));
$common_name
=
$argv
[
3
];
$modeid
=
$argv
[
6
];
$strictusercn
=
$argv
[
4
]
==
'false'
?
false
:
true
;
...
...
src/etc/rc.filter_synchronize
View file @
931efa68
...
...
@@ -91,7 +91,7 @@ function carp_check_version($url, $username, $password, $port = 80, $method = 'p
global
$config
,
$g
;
if
(
file_exists
(
"/var/run/booting"
)
{
return
;
return
;
}
$params
=
array
(
...
...
@@ -142,7 +142,7 @@ function carp_sync_xml($url, $username, $password, $sections, $port = 80, $metho
global
$config
,
$g
;
if
(
file_exists
(
"/var/run/booting"
)
{
return
;
return
;
}
update_filter_reload_status
(
"Syncing CARP data to
{
$url
}
"
);
...
...
src/etc/rc.initial
View file @
931efa68
...
...
@@ -23,7 +23,7 @@ if [ -n "${*}" ]; then
/bin/csh
"
${
@
}
"
exit
${
?
}
fi
# endless loop
while
:
;
do
...
...
src/opnsense/service/configd_ctl.py
View file @
931efa68
...
...
@@ -62,9 +62,3 @@ else:
print
(
''
.
join
(
data
))
finally
:
sock
.
close
()
src/opnsense/service/execute_command.py
View file @
931efa68
...
...
@@ -73,6 +73,3 @@ try:
print
(
'response:
%
s'
%
''
.
join
(
data
)
)
finally
:
sock
.
close
()
src/opnsense/service/templates/OPNsense/Proxy/rc.conf.d
View file @
931efa68
squid_enable
=
YES
\ No newline at end of file
squid_enable
=
YES
src/www/firewall_nat.php
View file @
931efa68
...
...
@@ -244,7 +244,7 @@ $main_buttons = array(
$alias_popup
=
rule_popup
(
$natent
[
'source'
][
'address'
],
pprint_port
(
$natent
[
'source'
][
'port'
]),
$natent
[
'destination'
][
'address'
],
pprint_port
(
$natent
[
'destination'
][
'port'
]));
$alias_popup
=
rule_popup
(
$natent
[
'source'
][
'address'
],
pprint_port
(
$natent
[
'source'
][
'port'
]),
$natent
[
'destination'
][
'address'
],
pprint_port
(
$natent
[
'destination'
][
'port'
]));
$alias_src_span_begin
=
$alias_popup
[
"src"
];
$alias_src_port_span_begin
=
$alias_popup
[
"srcport"
];
...
...
@@ -303,7 +303,7 @@ $main_buttons = array(
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
<?php
if
(
$alias_src_span_begin
)
echo
htmlspecialchars
(
pprint_address
(
$alias_src_span_begin
));
else
echo
htmlspecialchars
(
pprint_address
(
$natent
[
'source'
]));
if
(
$alias_src_span_end
)
echo
htmlspecialchars
(
pprint_address
(
$alias_src_span_end
));
...
...
@@ -312,7 +312,7 @@ $main_buttons = array(
</td>
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
<?php
if
(
$alias_src_port_span_begin
)
echo
htmlspecialchars
(
pprint_port
(
$alias_src_port_span_begin
));
else
echo
htmlspecialchars
(
pprint_port
(
$natent
[
'source'
][
'port'
]));
if
(
$alias_src_port_span_end
)
echo
htmlspecialchars
(
pprint_port
(
$alias_src_port_span_end
));
...
...
@@ -321,7 +321,7 @@ $main_buttons = array(
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
<?php
if
(
$alias_dst_span_begin
)
echo
htmlspecialchars
(
pprint_address
(
$alias_dst_span_begin
));
else
echo
htmlspecialchars
(
pprint_address
(
$natent
[
'destination'
]));
if
(
$alias_dst_span_end
)
echo
htmlspecialchars
(
pprint_address
(
$alias_dst_span_end
));
...
...
@@ -338,7 +338,7 @@ $main_buttons = array(
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
<?php
if
(
$alias_target_span_begin
)
echo
htmlspecialchars
(
pprint_address
(
$alias_target_span_begin
));
else
echo
htmlspecialchars
(
$natent
[
'target'
]);
if
(
$alias_target_span_end
)
echo
htmlspecialchars
(
pprint_address
(
$alias_target_span_end
));
...
...
@@ -355,7 +355,7 @@ $main_buttons = array(
$localport
.=
'-'
.
$localendport
;
}
?>
<?=
$textss
;
?><?php
<?=
$textss
;
?><?php
if
(
$alias_local_port_span_begin
)
echo
htmlspecialchars
(
pprint_port
(
$alias_local_port_span_begin
[
'address'
]));
else
echo
htmlspecialchars
(
pprint_port
(
$localport
));
if
(
$alias_local_port_span_end
)
echo
htmlspecialchars
(
pprint_port
(
$alias_local_port_span_end
[
'address'
]));
...
...
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