mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-22 05:46:30 +03:00
Implement group password for session auth
This commit is contained in:
@@ -210,6 +210,9 @@ func main() {
|
||||
for _, peer := range cfg.Peers {
|
||||
options = append(options, core.Peer{URI: peer})
|
||||
}
|
||||
if cfg.GroupPassword != "" {
|
||||
options = append(options, core.GroupPassword(cfg.GroupPassword))
|
||||
}
|
||||
for intf, peers := range cfg.InterfacePeers {
|
||||
for _, peer := range peers {
|
||||
options = append(options, core.Peer{URI: peer, SourceInterface: intf})
|
||||
|
||||
Reference in New Issue
Block a user