Skip to content
Snippets Groups Projects
Commit 031906f7 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

At least test that it compiles.

Sheesh.
parent 0577058b
Branches
Tags
No related merge requests found
...@@ -167,19 +167,19 @@ function DNS(servers) { ...@@ -167,19 +167,19 @@ function DNS(servers) {
).replace(/(0000:)+/, ':').replace(/(^|:)0{1,3}/g, '$1'); ).replace(/(0000:)+/, ':').replace(/(^|:)0{1,3}/g, '$1');
case 33: // SRV case 33: // SRV
tmp = {}; tmp = {};
tmp.priority = string_to_int16(resp.substr(offset, 2); tmp.priority = string_to_int16(resp.substr(offset, 2));
offset += 2; offset += 2;
tmp.weight = string_to_int16(resp.substr(offset, 2); tmp.weight = string_to_int16(resp.substr(offset, 2));
offset += 2; offset += 2;
tmp.port = string_to_int16(resp.substr(offset, 2); tmp.port = string_to_int16(resp.substr(offset, 2));
offset += 2; offset += 2;
tmp.target = get_name(resp, offset).name; tmp.target = get_name(resp, offset).name;
return tmp; return tmp;
case 35: // NAPTR case 35: // NAPTR
tmp = {}; tmp = {};
tmp.order = string_to_int16(resp.substr(offset, 2); tmp.order = string_to_int16(resp.substr(offset, 2));
offset += 2; offset += 2;
tmp.preference = string_to_int16(resp.substr(offset, 2); tmp.preference = string_to_int16(resp.substr(offset, 2));
offset += 2; offset += 2;
tmp2 = get_string(resp, offset); tmp2 = get_string(resp, offset);
tmp.flags = tmp2.string; tmp.flags = tmp2.string;
...@@ -194,9 +194,9 @@ function DNS(servers) { ...@@ -194,9 +194,9 @@ function DNS(servers) {
return tmp; return tmp;
case 256: // URI case 256: // URI
tmp = {}; tmp = {};
tmp.priority = string_to_int16(resp.substr(offset, 2); tmp.priority = string_to_int16(resp.substr(offset, 2));
offset += 2; offset += 2;
tmp.weight = string_to_int16(resp.substr(offset, 2); tmp.weight = string_to_int16(resp.substr(offset, 2));
offset += 2; offset += 2;
tmp.target = get_string(resp, offset).string; tmp.target = get_string(resp, offset).string;
tmp.target = tmp.target.replace(/\\"/g, '"'); tmp.target = tmp.target.replace(/\\"/g, '"');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment