Skip to content

Commit 930a4bd

Browse files
cute-omegaCopilot
andauthored
Update packages/mitmproxy/src/lib/dns/tls.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fd0dc03 commit 930a4bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/mitmproxy/src/lib/dns

packages/mitmproxy/src/lib/dns/tls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const defaultPort = 853
66
module.exports = class DNSOverTLS extends BaseDNS {
77
constructor (dnsName, cacheSize, preSetIpList, dnsServer, dnsServerPort, dnsServerName) {
88
super(dnsName, 'TLS', cacheSize, preSetIpList)
9-
this.dnsServer = dnsServer.replace(/\s+/, '')
9+
this.dnsServer = dnsServer.replace(/\s+/g, '')
1010
this.dnsServerPort = Number.parseInt(dnsServerPort) || defaultPort
1111
this.dnsServerName = dnsServerName
1212
this.isIPv6 = dnsServer.includes(':') && dnsServer.includes('[') && dnsServer.includes(']')

0 commit comments

Comments
 (0)