mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-13 18:18:15 +03:00
Fixed issues mentioned in the @systemcrash review
- Reverted formatting fixes where possible - Clarified the note about updateSearchList() - Fixed a typo - Made SUBNET_RANGES example yaml-friendly - Removed Makefile
This commit is contained in:
parent
8678a74bd5
commit
9e633014b5
7 changed files with 16 additions and 26 deletions
|
@ -37,7 +37,7 @@ const (
|
|||
DefaultDNS = "1.1.1.1"
|
||||
DefaultMTU = 1450
|
||||
DefaultPersistentKeepalive = 15
|
||||
DefaultFirewallMark = "0xca6c" // i.e. 51820
|
||||
DefaultFirewallMark = "0xca6c" // i.e. 51820
|
||||
DefaultTable = "auto"
|
||||
DefaultConfigFilePath = "/etc/wireguard/wg0.conf"
|
||||
UsernameEnvVar = "WGUI_USERNAME"
|
||||
|
|
|
@ -429,7 +429,7 @@ func findSubnetRangeForIP(cidr string) (uint16, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
return 0, fmt.Errorf("Subnet range not foud for this IP")
|
||||
return 0, fmt.Errorf("Subnet range not found for this IP")
|
||||
}
|
||||
|
||||
// FillClientSubnetRange to fill subnet ranges client belongs to, does nothing if SRs are not found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue