apkfuckery/com.discord/smali_classes2/x/p.smali
2019-12-21 02:41:59 +01:00

102 lines
2.2 KiB
Smali

.class public final Lx/p;
.super Ljava/lang/Object;
.source "Dns.kt"
# interfaces
.implements Lx/q;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Ljava/lang/String;)Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/net/InetAddress;",
">;"
}
.end annotation
if-eqz p1, :cond_2
:try_start_0
invoke-static {p1}, Ljava/net/InetAddress;->getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;
move-result-object v0
const-string v1, "InetAddress.getAllByName(hostname)"
invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v1, v0
if-eqz v1, :cond_1
const/4 v2, 0x1
if-eq v1, v2, :cond_0
invoke-static {v0}, Le/k/a/b/e/p/g;->toMutableList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
goto :goto_0
:cond_0
const/4 v1, 0x0
aget-object v0, v0, v1
invoke-static {v0}, Le/k/a/b/e/p/g;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
goto :goto_0
:cond_1
sget-object p1, Lt/q/o;->d:Lt/q/o;
:try_end_0
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
:goto_0
return-object p1
:catch_0
move-exception v0
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;
move-result-object p1
invoke-direct {v1, p1}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
throw v1
:cond_2
const-string p1, "hostname"
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method