package com.tencent.mm.network;

import com.tencent.mars.BaseEvent;
import com.tencent.mars.mm.MMLogic;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.bj;
import java.util.ArrayList;
import java.util.Map;
import java.util.Map.Entry;

class t$9 extends bj<Object> {
    final /* synthetic */ t gdd;
    final /* synthetic */ Map gdn;
    final /* synthetic */ Map gdo;
    final /* synthetic */ int[] gdp;
    final /* synthetic */ int[] gdq;

    t$9(t tVar, Object obj, Map map, Map map2, int[] iArr, int[] iArr2) {
        this.gdd = tVar;
        this.gdn = map;
        this.gdo = map2;
        this.gdp = iArr;
        this.gdq = iArr2;
        super(3000, obj, (byte) 0);
    }

    public final Object run() {
        AppMethodBeat.i(58560);
        for (Entry entry : this.gdn.entrySet()) {
            try {
                MMLogic.saveAuthLongIPs((String) entry.getKey(), (String[]) ((ArrayList) entry.getValue()).toArray(new String[0]));
            } catch (Throwable th) {
                MMLogic.saveAuthLongIPs((String) entry.getKey(), (String[]) ((ArrayList) entry.getValue()).toArray(new String[0]));
            }
        }
        for (Entry entry2 : this.gdo.entrySet()) {
            MMLogic.saveAuthShortIPs((String) entry2.getKey(), (String[]) ((ArrayList) entry2.getValue()).toArray(new String[0]));
        }
        MMLogic.saveAuthPorts(this.gdp, this.gdq);
        BaseEvent.onNetworkChange();
        AppMethodBeat.o(58560);
        return null;
    }
}
