mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 11:56:53 +00:00
小bug
This commit is contained in:
@@ -157,7 +157,8 @@ func InitCsvDb() *Csv {
|
||||
//get key by host from x
|
||||
func GetKeyByHost(host string) (h *HostList, t *ServerConfig, err error) {
|
||||
for _, v := range CsvDb.Hosts {
|
||||
if strings.Contains(host, v.Host) {
|
||||
s := strings.Split(host, ":")
|
||||
if s[0] == v.Host {
|
||||
h = v
|
||||
t, err = CsvDb.GetTask(v.Vkey)
|
||||
return
|
||||
|
Reference in New Issue
Block a user