Skip to content

Commit

Permalink
Fix peer-port saving
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Sep 20, 2023
1 parent c2d7844 commit f755cc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/app/app/settings/Torrents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const Torrents = () => {
'lpd-enabled': session['lpd-enabled'],
'pex-enabled': session['pex-enabled'],
'port-forwarding-enabled': session['port-forwarding-enabled'],
'peer-port': session['peer-port'],
},
})

Expand Down Expand Up @@ -179,7 +180,9 @@ export const Torrents = () => {
try {
const parsedNumber = parseInt(text)
setSession((s) => ({ ...s, ['peer-port']: parsedNumber }))
} catch (e) {}
} catch (e) {
console.error(e)
}
}}
/>
</SettingLayout>
Expand Down

0 comments on commit f755cc3

Please sign in to comment.