mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-08-04 15:19:13 +00:00
chore
This commit is contained in:
parent
404365211e
commit
ffc3d4df74
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ func (s *Server) AddUser(ctx context.Context, user *protocol.MemoryUser) error {
|
|||
}
|
||||
var sb strings.Builder
|
||||
sb.WriteString("public_key=" + hex.EncodeToString(peer.Pub[:]) + "\n")
|
||||
sb.WriteString("replace_allowed_ips=true")
|
||||
sb.WriteString("replace_allowed_ips=true\n")
|
||||
for _, ip := range peer.AllowedIPs {
|
||||
sb.WriteString("allowed_ip=" + ip.String() + "\n")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue