Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
F #277 Fix onegate proxy static route
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed May 11, 2023
1 parent 3f036ae commit 1c08a2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/etc/one-context.d/loc-10-network.d/functions
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ initialize_network()
# shellcheck disable=SC2154
[ "${action}" = 'configure' ] || return 0

export onegate_proxy_route_missing="yes" # flag route not setup

_context_interfaces=$(get_context_interfaces)
_iface_mac=$(get_interface_mac)

Expand Down
4 changes: 1 addition & 3 deletions src/etc/one-context.d/loc-10-network.d/netcfg-interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ EOT

# Add ONEGATE Proxy static route
if [[ $(add_onegate_proxy_route?) ]]; then
echo " up ip route replace ${onegate_host} via ${dev}"
echo " up ip route replace ${onegate_host} dev ${dev}"

# Will make proxy static route only applicable to 1st interface
unset onegate_proxy_route_missing
Expand Down Expand Up @@ -375,8 +375,6 @@ EOT

_context_interfaces=$(get_context_interfaces)

export onegate_proxy_route_missing="yes" # flag route not setup

for _iface in $_context_interfaces; do
setup_iface_vars "$_iface"

Expand Down
2 changes: 1 addition & 1 deletion src/etc/one-context.d/loc-10-network.d/netcfg-scripts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ EOT

# Add ONEGATE Proxy static route
if [[ $(add_onegate_proxy_route?) ]]; then
route="${onegate_host} via ${dev}"
route="${onegate_host} dev ${dev}"
echo "$route" >> "${config_path}/route-${dev}"

# Will make proxy static route only applicable to 1st interface
Expand Down

0 comments on commit 1c08a2f

Please sign in to comment.