mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-08 00:56:58 +03:00
Some comment fixes (#278)
This commit is contained in:
parent
310c8343d3
commit
e76c573b1d
3 changed files with 5 additions and 5 deletions
|
@ -138,7 +138,7 @@ func (o *JsonDB) GetGlobalSettings() (model.GlobalSetting, error) {
|
|||
return settings, o.conn.Read("server", "global_settings", &settings)
|
||||
}
|
||||
|
||||
// GetServer func to query Server setting from the database
|
||||
// GetServer func to query Server settings from the database
|
||||
func (o *JsonDB) GetServer() (model.Server, error) {
|
||||
server := model.Server{}
|
||||
// read server interface information
|
||||
|
@ -162,7 +162,7 @@ func (o *JsonDB) GetServer() (model.Server, error) {
|
|||
func (o *JsonDB) GetClients(hasQRCode bool) ([]model.ClientData, error) {
|
||||
var clients []model.ClientData
|
||||
|
||||
// read all client json file in "clients" directory
|
||||
// read all client json files in "clients" directory
|
||||
records, err := o.conn.ReadAll("clients")
|
||||
if err != nil {
|
||||
return clients, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue