forgot enable closing miner
This commit is contained in:
parent
6ef3b1fe6d
commit
33e9c19140
2
index.ts
2
index.ts
|
@ -469,7 +469,7 @@ const farm: () => Promise<void> = async () => {
|
|||
|
||||
}
|
||||
await db.save()
|
||||
// await miner.close(true);
|
||||
await miner.close(true);
|
||||
}
|
||||
|
||||
// menu
|
||||
|
|
1
utils.ts
1
utils.ts
|
@ -38,6 +38,7 @@ export const arrayWithoutElementAtIndex = function (arr: AccountInterface[] | []
|
|||
});
|
||||
}
|
||||
export const getIP=async function (proxyPort: number): Promise<string | null> {
|
||||
// https://github.com/ulixee/unblocked/blob/main/plugins/default-browser-emulator/lib/helpers/lookupPublicIp.ts
|
||||
let data: string | PromiseLike<string | null> | null
|
||||
try{
|
||||
data=(await axios.get('http://api.ipify.org',{
|
||||
|
|
Loading…
Reference in New Issue