1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-17 21:39:47 +00:00

hide away IP pool things in the UI if not enabled

هذا الالتزام موجود في:
Adam Cooke
2017-04-27 09:41:21 +01:00
الأصل 1f64c61105
التزام 61da4bf48c
6 ملفات معدلة مع 12 إضافات و16 حذوفات

عرض الملف

@@ -64,7 +64,7 @@ class QueuedMessage < ApplicationRecord
end
def allocate_ip_address
if Postal.config.general.use_ip_pools && self.message && pool = self.server.ip_pool_for_message(self.message)
if Postal.ip_pools? && self.message && pool = self.server.ip_pool_for_message(self.message)
self.ip_address = pool.ip_addresses.order("RAND()").first
end
end