mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
api配置分离
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import config
|
||||
import api
|
||||
from common.query import Query
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ class PassiveDnsAPI(Query):
|
||||
self.domain = self.register(domain)
|
||||
self.module = 'Dataset'
|
||||
self.source = 'PassiveDnsQuery'
|
||||
self.addr = config.passivedns_api_addr or 'http://api.passivedns.cn'
|
||||
self.token = config.passivedns_api_token
|
||||
self.addr = api.passivedns_api_addr or 'http://api.passivedns.cn'
|
||||
self.token = api.passivedns_api_token
|
||||
|
||||
def query(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user