mirror of
https://github.com/fatedier/frp.git
synced 2026-04-27 11:29:09 +08:00
Change directory structure, move models and utils to root directory
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/fatedier/frp/pkg/models"
|
||||
"github.com/fatedier/frp/models/server"
|
||||
|
||||
ini "github.com/vaughan0/go-ini"
|
||||
)
|
||||
@@ -19,7 +19,7 @@ var (
|
||||
HeartBeatTimeout int64 = 30
|
||||
)
|
||||
|
||||
var ProxyServers map[string]*models.ProxyServer = make(map[string]*models.ProxyServer)
|
||||
var ProxyServers map[string]*server.ProxyServer = make(map[string]*server.ProxyServer)
|
||||
|
||||
func LoadConf(confFile string) (err error) {
|
||||
var tmpStr string
|
||||
@@ -59,7 +59,7 @@ func LoadConf(confFile string) (err error) {
|
||||
// servers
|
||||
for name, section := range conf {
|
||||
if name != "common" {
|
||||
proxyServer := &models.ProxyServer{}
|
||||
proxyServer := &server.ProxyServer{}
|
||||
proxyServer.Name = name
|
||||
|
||||
proxyServer.Passwd, ok = section["passwd"]
|
||||
|
||||
Reference in New Issue
Block a user