ws: support set a different host header #157

This commit is contained in:
nadoo committed 2020-04-05 11:55:48 +08:00
1 parent 666c76f921
commit 855907c46b
5 files changed
+55 -49

No files matched your search

+1 -1
View File
@@ -288,7 +288,7 @@ func (c *Client) GenResponse(domain string, ip string) (*Message, error) {
}
func getKey(q *Question) string {
qtype := ""
var qtype string
switch q.QTYPE {
case QTypeA:
qtype = "A"