مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-16 21:23:37 +00:00
fix: match IPv4 mapped IPv6 addresses when searching for SMTP-IP credentials
هذا الالتزام موجود في:
@@ -355,7 +355,7 @@ module Postal
|
|||||||
else
|
else
|
||||||
# User is trying to relay but is not authenticated. Try to authenticate by IP address
|
# User is trying to relay but is not authenticated. Try to authenticate by IP address
|
||||||
@credential = Credential.where(type: "SMTP-IP").all.sort_by { |c| c.ipaddr&.prefix || 0 }.reverse.find do |credential|
|
@credential = Credential.where(type: "SMTP-IP").all.sort_by { |c| c.ipaddr&.prefix || 0 }.reverse.find do |credential|
|
||||||
credential.ipaddr.include?(@ip_address)
|
credential.ipaddr.include?(@ip_address) || (credential.ipaddr.ipv4? && credential.ipaddr.ipv4_mapped.include?(@ip_address))
|
||||||
end
|
end
|
||||||
|
|
||||||
if @credential
|
if @credential
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم