mirror of https://github.com/NekoX-Dev/NekoX.git
Reduce max accounts to 16
This commit is contained in:
parent
368ab7ab8b
commit
56c45fc5c1
|
@ -180,57 +180,9 @@ ConnectionsManager& ConnectionsManager::getInstance(int32_t instanceNum) {
|
||||||
static ConnectionsManager instance14(14);
|
static ConnectionsManager instance14(14);
|
||||||
return instance14;
|
return instance14;
|
||||||
case 15:
|
case 15:
|
||||||
|
default:
|
||||||
static ConnectionsManager instance15(15);
|
static ConnectionsManager instance15(15);
|
||||||
return instance15;
|
return instance15;
|
||||||
case 16:
|
|
||||||
static ConnectionsManager instance16(16);
|
|
||||||
return instance16;
|
|
||||||
case 17:
|
|
||||||
static ConnectionsManager instance17(17);
|
|
||||||
return instance17;
|
|
||||||
case 18:
|
|
||||||
static ConnectionsManager instance18(18);
|
|
||||||
return instance18;
|
|
||||||
case 19:
|
|
||||||
static ConnectionsManager instance19(19);
|
|
||||||
return instance19;
|
|
||||||
case 20:
|
|
||||||
static ConnectionsManager instance20(20);
|
|
||||||
return instance20;
|
|
||||||
case 21:
|
|
||||||
static ConnectionsManager instance21(21);
|
|
||||||
return instance21;
|
|
||||||
case 22:
|
|
||||||
static ConnectionsManager instance22(22);
|
|
||||||
return instance22;
|
|
||||||
case 23:
|
|
||||||
static ConnectionsManager instance23(23);
|
|
||||||
return instance23;
|
|
||||||
case 24:
|
|
||||||
static ConnectionsManager instance24(24);
|
|
||||||
return instance24;
|
|
||||||
case 25:
|
|
||||||
static ConnectionsManager instance25(25);
|
|
||||||
return instance25;
|
|
||||||
case 26:
|
|
||||||
static ConnectionsManager instance26(26);
|
|
||||||
return instance26;
|
|
||||||
case 27:
|
|
||||||
static ConnectionsManager instance27(27);
|
|
||||||
return instance27;
|
|
||||||
case 28:
|
|
||||||
static ConnectionsManager instance28(28);
|
|
||||||
return instance28;
|
|
||||||
case 29:
|
|
||||||
static ConnectionsManager instance29(29);
|
|
||||||
return instance29;
|
|
||||||
case 30:
|
|
||||||
static ConnectionsManager instance30(30);
|
|
||||||
return instance30;
|
|
||||||
case 31:
|
|
||||||
default:
|
|
||||||
static ConnectionsManager instance31(31);
|
|
||||||
return instance31;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#define DOWNLOAD_CONNECTIONS_COUNT 2
|
#define DOWNLOAD_CONNECTIONS_COUNT 2
|
||||||
#define UPLOAD_CONNECTIONS_COUNT 4
|
#define UPLOAD_CONNECTIONS_COUNT 4
|
||||||
#define CONNECTION_BACKGROUND_KEEP_TIME 10000
|
#define CONNECTION_BACKGROUND_KEEP_TIME 10000
|
||||||
#define MAX_ACCOUNT_COUNT 32
|
#define MAX_ACCOUNT_COUNT 16
|
||||||
#define USE_DELEGATE_HOST_RESOLVE
|
#define USE_DELEGATE_HOST_RESOLVE
|
||||||
|
|
||||||
#define USE_IPV4_ONLY 0
|
#define USE_IPV4_ONLY 0
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.Arrays;
|
||||||
public class UserConfig extends BaseController {
|
public class UserConfig extends BaseController {
|
||||||
|
|
||||||
public static int selectedAccount;
|
public static int selectedAccount;
|
||||||
public final static int MAX_ACCOUNT_COUNT = 32;
|
public final static int MAX_ACCOUNT_COUNT = 16;
|
||||||
|
|
||||||
private final Object sync = new Object();
|
private final Object sync = new Object();
|
||||||
private boolean configLoaded;
|
private boolean configLoaded;
|
||||||
|
|
|
@ -4,7 +4,7 @@ source "bin/init/env.sh"
|
||||||
|
|
||||||
./gradlew TMessagesProj:stripFullFossDebugSymbols || exit 1
|
./gradlew TMessagesProj:stripFullFossDebugSymbols || exit 1
|
||||||
|
|
||||||
OUT=TMessagesProj/build/intermediates/stripped_native_libs/fullFossRelease/out/lib
|
OUT=TMessagesProj/build/intermediates/stripped_native_libs/fullFoss/out/lib
|
||||||
DIR=TMessagesProj/src/main/libs
|
DIR=TMessagesProj/src/main/libs
|
||||||
rm -rf $DIR/armeabi-v7a
|
rm -rf $DIR/armeabi-v7a
|
||||||
mkdir -p $DIR/armeabi-v7a
|
mkdir -p $DIR/armeabi-v7a
|
||||||
|
|
7
run
7
run
|
@ -1,11 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
EXEC=""
|
||||||
TARGET="bin"
|
TARGET="bin"
|
||||||
for e in $@; do
|
for e in $@; do
|
||||||
TARGET="$TARGET/$e"
|
TARGET="$TARGET/$e"
|
||||||
shift
|
shift
|
||||||
if [ -x "${TARGET}.sh" ]; then
|
if [ -x "${TARGET}.sh" ]; then
|
||||||
echo ">> ${TARGET}.sh"
|
EXEC="${TARGET}.sh"
|
||||||
exec "${TARGET}.sh" $@
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo ">> $EXEC"
|
||||||
|
exec "$EXEC" $@
|
Loading…
Reference in New Issue