Skip to content

Commit

Permalink
refactor(generator/client): do not append '-out' suffix to wg ifname
Browse files Browse the repository at this point in the history
each section name is unique, it's good enough to be identified.

Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Nov 20, 2024
1 parent c7d4360 commit aac3c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/homeproxy/scripts/generate_client.uc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function generate_outbound(node) {
/* WireGuard */
system_interface: (node.type === 'wireguard') || null,
gso: (node.wireguard_gso === '1') || null,
interface_name: (node.type === 'wireguard') ? 'wg-' + node['.name'] + '-out' : null,
interface_name: (node.type === 'wireguard') ? 'wg' + node['.name'] : null,
local_address: node.wireguard_local_address,
private_key: node.wireguard_private_key,
peer_public_key: node.wireguard_peer_public_key,
Expand Down

0 comments on commit aac3c2f

Please sign in to comment.