forked from AdAway/AdAway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/AdAway/AdAway
- Loading branch information
Showing
511 changed files
with
51,472 additions
and
7,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ android { | |
} | ||
} | ||
|
||
compileSdkVersion 23 | ||
compileSdkVersion 25 | ||
buildToolsVersion "24.0.3" | ||
|
||
defaultConfig { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
AdAway/jni/blank_webserver/mongoose/docs/c-api/coap.h/intro.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
AdAway/jni/blank_webserver/mongoose/docs/c-api/dns.h/intro.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
AdAway/jni/blank_webserver/mongoose/docs/c-api/dns.h/mg_dns_copy_questions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: "mg_dns_copy_questions()" | ||
decl_name: "mg_dns_copy_questions" | ||
symbol_kind: "func" | ||
signature: | | ||
int mg_dns_copy_questions(struct mbuf *io, struct mg_dns_message *msg); | ||
--- | ||
|
||
Appends already encoded questions from an existing message. | ||
|
||
This is useful when generating a DNS reply message which includes | ||
all question records. | ||
|
||
Returns the number of appended bytes. | ||
|
10 changes: 10 additions & 0 deletions
10
AdAway/jni/blank_webserver/mongoose/docs/c-api/dns.h/mg_dns_encode_name.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "mg_dns_encode_name()" | ||
decl_name: "mg_dns_encode_name" | ||
symbol_kind: "func" | ||
signature: | | ||
int mg_dns_encode_name(struct mbuf *io, const char *name, size_t len); | ||
--- | ||
|
||
Encodes a DNS name. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ signature: | | |
int query_type); | ||
--- | ||
|
||
Send a DNS query to the remote end. | ||
Sends a DNS query to the remote end. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
AdAway/jni/blank_webserver/mongoose/docs/c-api/dns_server.h/intro.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: "DNS server API reference" | ||
symbol_kind: "intro" | ||
decl_name: "dns_server.h" | ||
items: | ||
- { name: mg_dns_create_reply.md } | ||
- { name: mg_dns_reply_record.md } | ||
- { name: mg_dns_send_reply.md } | ||
--- | ||
|
||
Disabled by default; enable with `-DMG_ENABLE_DNS_SERVER`. | ||
|
36 changes: 36 additions & 0 deletions
36
AdAway/jni/blank_webserver/mongoose/docs/c-api/dns_server.h/mg_dns_create_reply.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: "mg_dns_create_reply()" | ||
decl_name: "mg_dns_create_reply" | ||
symbol_kind: "func" | ||
signature: | | ||
struct mg_dns_reply mg_dns_create_reply(struct mbuf *io, | ||
struct mg_dns_message *msg); | ||
--- | ||
|
||
Creates a DNS reply. | ||
|
||
The reply will be based on an existing query message `msg`. | ||
The query body will be appended to the output buffer. | ||
"reply + recursion allowed" will be added to the message flags and the | ||
message's num_answers will be set to 0. | ||
|
||
Answer records can be appended with `mg_dns_send_reply` or by lower | ||
level function defined in the DNS API. | ||
|
||
In order to send a reply use `mg_dns_send_reply`. | ||
It's possible to use a connection's send buffer as reply buffer, | ||
and it will work for both UDP and TCP connections. | ||
|
||
Example: | ||
|
||
```c | ||
reply = mg_dns_create_reply(&nc->send_mbuf, msg); | ||
for (i = 0; i < msg->num_questions; i++) { | ||
rr = &msg->questions[i]; | ||
if (rr->rtype == MG_DNS_A_RECORD) { | ||
mg_dns_reply_record(&reply, rr, 3600, &dummy_ip_addr, 4); | ||
} | ||
} | ||
mg_dns_send_reply(nc, &reply); | ||
``` | ||
Oops, something went wrong.