forked from Mirrors/doipjs
Apply generateProxyURL to DNS service provider
This commit is contained in:
parent
2ac42a6edf
commit
eba9d48af2
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
const utils = require('../utils')
|
||||||
const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
||||||
|
|
||||||
const processURI = (uri, opts) => {
|
const processURI = (uri, opts) => {
|
||||||
|
@ -29,7 +30,7 @@ const processURI = (uri, opts) => {
|
||||||
uri: `https://${match[1]}`
|
uri: `https://${match[1]}`
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
uri: `https://proxy.keyoxide.org/api/1/get/dns/${match[1]}`,
|
uri: utils.generateProxyURL('dns', match[1]),
|
||||||
fetch: null,
|
fetch: null,
|
||||||
useProxy: false,
|
useProxy: false,
|
||||||
format: 'json'
|
format: 'json'
|
||||||
|
|
Loading…
Reference in a new issue