mirror of
https://github.com/ngoduykhanh/wireguard-ui
synced 2024-05-19 14:06:37 +02: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
11
Makefile
11
Makefile
|
@ -1,11 +0,0 @@
|
|||
build-ui:
|
||||
./prepare_assets.sh
|
||||
|
||||
build:
|
||||
CGO_ENABLED=0 go build -v -ldflags="-s -w"
|
||||
|
||||
run:
|
||||
./wireguard-ui
|
||||
|
||||
clean:
|
||||
rm -f wireguard-ui
|
|
@ -1108,6 +1108,7 @@ func ApplyServerConfig(db store.IStore, tmplDir fs.FS) echo.HandlerFunc {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// GetHashesChanges handler returns if database hashes have changed
|
||||
func GetHashesChanges(db store.IStore) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
|
|
|
@ -58,13 +58,13 @@
|
|||
</div>
|
||||
<div class="form-group form-group-sm">
|
||||
<select name="status-selector" id="status-selector" class="custom-select form-control-navbar" style="margin-left: 0.5em; height: 90%; font-size: 14px;">
|
||||
<!-- SEE updateSearchList() in clients.html BEFORE EDITING -->
|
||||
<!-- THIS SECTION IS OVERRIDDEN BY JS. SEE updateSearchList() function in clients.html BEFORE EDITING -->
|
||||
<option value="All">All</option>
|
||||
<option value="Enabled">Enabled</option>
|
||||
<option value="Disabled">Disabled</option>
|
||||
<option value="Connected">Connected</option>
|
||||
<option value="Disconnected">Disconnected</option>
|
||||
<!-- SEE updateSearchList() in clients.html BEFORE EDITING -->
|
||||
<!-- THIS SECTION IS OVERRIDDEN BY JS. SEE updateSearchList() function in clients.html BEFORE EDITING -->
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -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…
Reference in a new issue