mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-05-06 08:28:56 +00:00
fix: w2g hanging when entering a new w2g lobby while in an existing w2g lobby
Some checks are pending
Check / check (push) Waiting to run
Some checks are pending
Check / check (push) Waiting to run
fix: hide NAT64 mappings feat: increase maxpeers if forwarding is available
This commit is contained in:
parent
3720645775
commit
b52d9dccc4
4 changed files with 7 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.16",
|
||||
"version": "6.4.17",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.14.4",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
import { Button } from '$lib/components/ui/button'
|
||||
import { Messages, UserList } from '$lib/components/ui/chat'
|
||||
import { Textarea } from '$lib/components/ui/textarea'
|
||||
import { W2GClient } from '$lib/modules/w2g'
|
||||
</script>
|
||||
|
||||
<script lang='ts'>
|
||||
|
|
@ -18,8 +17,6 @@
|
|||
|
||||
export let data
|
||||
|
||||
$w2globby ??= new W2GClient(data.id, false)
|
||||
|
||||
$: users = $w2globby!.peers
|
||||
$: messages = $w2globby!.messages
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import type { PageLoad } from './$types'
|
||||
|
||||
import { W2GClient } from '$lib/modules/w2g'
|
||||
import { w2globby } from '$lib/modules/w2g/lobby'
|
||||
|
||||
export const load: PageLoad = ({ params }) => {
|
||||
|
|
@ -7,5 +8,6 @@ export const load: PageLoad = ({ params }) => {
|
|||
w2globby.value.destroy()
|
||||
w2globby.value = undefined
|
||||
}
|
||||
w2globby.value ??= new W2GClient(params.id, false)
|
||||
return params
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,10 @@
|
|||
async function checkPortAvailability (port: number): Checks['promise'] {
|
||||
const res = await native.checkIncomingConnections(port)
|
||||
$hasForwarding = res
|
||||
if (res) return { status: 'success', text: 'Port forwarding is available.' }
|
||||
if (res) {
|
||||
$settings.maxConns = 120
|
||||
return { status: 'success', text: 'Port forwarding is available.' }
|
||||
}
|
||||
return { status: 'error', text: 'Not available. Peer discovery will suffer. Streaming old, poorly seeded anime might be impossible.', slot: 'port' }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue