apkfuckery/com.discord/smali_classes2/a0/p.smali

78 lines
1.8 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final La0/p;
2019-12-21 01:41:59 +00:00
.super Ljava/lang/Object;
2020-02-20 19:33:18 +00:00
.source "Dns.kt"
2019-12-21 01:41:59 +00:00
# interfaces
2020-02-20 19:33:18 +00:00
.implements La0/q;
2019-12-21 01:41:59 +00:00
# direct methods
2020-02-20 19:33:18 +00:00
.method public constructor <init>()V
2019-12-21 01:41:59 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2020-02-20 19:33:18 +00:00
.method public a(Ljava/lang/String;)Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
2019-12-21 01:41:59 +00:00
value = {
2020-02-20 19:33:18 +00:00
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/net/InetAddress;",
">;"
2019-12-21 01:41:59 +00:00
}
.end annotation
2020-03-14 02:12:46 +00:00
if-eqz p1, :cond_0
2020-02-20 19:33:18 +00:00
:try_start_0
invoke-static {p1}, Ljava/net/InetAddress;->getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;
2019-12-21 01:41:59 +00:00
move-result-object v0
2020-02-20 19:33:18 +00:00
const-string v1, "InetAddress.getAllByName(hostname)"
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-21 01:41:59 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {v0}, Le/k/a/c/e/p/g;->toList([Ljava/lang/Object;)Ljava/util/List;
2019-12-21 01:41:59 +00:00
move-result-object p1
2020-02-20 19:33:18 +00:00
:try_end_0
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception v0
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
new-instance v1, Ljava/net/UnknownHostException;
const-string v2, "Broken system behaviour for dns lookup of "
invoke-static {v2, p1}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2019-12-21 01:41:59 +00:00
move-result-object p1
2020-02-20 19:33:18 +00:00
invoke-direct {v1, p1}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v1, v0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
throw v1
2020-03-14 02:12:46 +00:00
:cond_0
const-string p1, "hostname"
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
2019-12-21 01:41:59 +00:00
.end method