mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
P2p first version
This commit is contained in:
@@ -181,7 +181,7 @@ func (s *Csv) DelTask(id int) error {
|
||||
}
|
||||
|
||||
//md5 password
|
||||
func (s *Csv) GetSecretTask(p string) *Tunnel {
|
||||
func (s *Csv) GetTaskByMd5Password(p string) *Tunnel {
|
||||
for _, v := range s.Tasks {
|
||||
if crypt.Md5(v.Password) == p {
|
||||
return v
|
||||
|
@@ -53,7 +53,6 @@ func NewClient(vKey string, noStore bool, noDisplay bool) *Client {
|
||||
Flow: new(Flow),
|
||||
Rate: nil,
|
||||
NoStore: noStore,
|
||||
id: GetCsvDb().GetClientId(),
|
||||
RWMutex: sync.RWMutex{},
|
||||
NoDisplay: noDisplay,
|
||||
}
|
||||
|
Reference in New Issue
Block a user