Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void main() {
final whiteListURL = [
"vxcert.moh.gov.my",
"action.openattestation.com",
"www.verify.gov.sg"
];
final u = Uri.parse("http://127.1.1.1:127.2.2.2:80/");
if(whiteListURL.contains(u.host)) {
print("ada");
} else {
print("xda");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment