Skip to content

Instantly share code, notes, and snippets.

@RamadhanAmizudin
Created August 25, 2021 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RamadhanAmizudin/bf7ee920ac9f2a448c4fd2e7147e4229 to your computer and use it in GitHub Desktop.
Save RamadhanAmizudin/bf7ee920ac9f2a448c4fd2e7147e4229 to your computer and use it in GitHub Desktop.
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