مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
Add explicit DNS timeout
This makes DNS timeouts occur much more quickly and avoid clients with nonfunctional reverse DNS timing out while waiting for a response to their EHLO requests.
هذا الالتزام موجود في:
@@ -105,7 +105,10 @@ module Postal
|
|||||||
private
|
private
|
||||||
|
|
||||||
def resolve_hostname
|
def resolve_hostname
|
||||||
@hostname = Resolv.new.getname(@ip_address) rescue @ip_address
|
Resolv::DNS.open do |dns|
|
||||||
|
dns.timeouts = [10,5]
|
||||||
|
@hostname = dns.getname(@ip_address) rescue @ip_address
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def proxy(data)
|
def proxy(data)
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم