This commit is contained in:
Igor Kamyshnikov 2026-01-02 23:17:15 +07:00 committed by GitHub
commit 0e407b6407
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -317,7 +317,13 @@ func (s *SubService) genVmessLink(inbound *model.Inbound, email string) string {
}
func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string {
address := s.address
var address string
if inbound.Listen == "" || inbound.Listen == "0.0.0.0" || inbound.Listen == "::" || inbound.Listen == "::0" {
address = s.address
} else {
address = inbound.Listen
}
if inbound.Protocol != model.VLESS {
return ""
}