Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proto_amneziawg_check_installed: not found #7

Open
Ser9ei opened this issue May 14, 2024 · 0 comments
Open

proto_amneziawg_check_installed: not found #7

Ser9ei opened this issue May 14, 2024 · 0 comments

Comments

@Ser9ei
Copy link

Ser9ei commented May 14, 2024

Exception in the log after starting the awg below:

daemon.notice netifd: Interface 'awg0' is setting up now
daemon.notice netifd: awg0 (16184): ./amneziawg.sh: eval: line 308: proto_amneziawg_check_installed: not found
kern.info kernel: [ 2116.844450] amneziawg: WireGuard 1.0.0 (Amnezia VPN) loaded. See www.wireguard.com for information.
kern.info kernel: [ 2116.853608] amneziawg: Copyright (C) 2015-2019 Jason A. Donenfeld Jason@zx2c4.com. All Rights Reserved.
daemon.notice netifd: Interface 'awg0' is now down
daemon.notice netifd: Interface 'awg0' is setting up now
user.notice amneziawg: info: using kernel-space kmod-amneziawg for /usr/bin/awg
daemon.notice netifd: Interface 'awg0' is now up
daemon.notice netifd: Network device 'awg0' link is up

Source code (amneziawg.sh file of the 'amneziawg-tools'):

proto_amneziawg_teardown() {
	local config="$1"
	proto_amneziawg_check_installed
	if proto_amneziawg_is_kernel_mode; then
		ip link del dev "${config}" >/dev/null 2>&1
	else
		rm -f "/var/run/amneziawg/${config}.sock"
	fi
}

Looks like "proto_amneziawg_check_installed" should be defined or removed from the 'proto_amneziawg_teardown' function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant