Ignore:
Timestamp:
9 Aug 2017, 10:46:29 (7 years ago)
Author:
Henrik Bettermann
Message:

Set IP address whitelist in custom packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/webservices.py

    r14783 r14785  
    3333    grok.require('waeup.Public')
    3434
    35     ACCEPTED_IP = ('127.0.0.1', '209.235.215.199', '162.13.211.91',
    36                    '162.13.211.92', '83.138.167.2')
    37     # ACCEPTED_IP = ('127.0.0.1', )
     35    ACCEPTED_IP = None
    3836
    3937    # Here we use Remita test portal data
     
    7371                'PaymentNotificationListenerWebservice called: %s' % real_ip)
    7472        if real_ip and self.ACCEPTED_IP:
    75             if real_ip not in  self.ACCEPTED_IP:
     73            if real_ip not in self.ACCEPTED_IP:
    7674                self.output = '-1'
    7775                return
Note: See TracChangeset for help on using the changeset viewer.