From a29349526438d1d862aac3f2d59f29c150111773 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sat, 31 Oct 2020 23:23:39 +0800 Subject: [PATCH] RTorrentConnectionSettingsForm: Socket first, TCP second R -> S -> T Plus, socket connection type is preferred due to the added security. --- .../RTorrentConnectionSettingsForm.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/client/src/javascript/components/general/connection-settings/RTorrentConnectionSettingsForm.tsx b/client/src/javascript/components/general/connection-settings/RTorrentConnectionSettingsForm.tsx index a38057b9..245e3ace 100644 --- a/client/src/javascript/components/general/connection-settings/RTorrentConnectionSettingsForm.tsx +++ b/client/src/javascript/components/general/connection-settings/RTorrentConnectionSettingsForm.tsx @@ -27,7 +27,7 @@ class RTorrentConnectionSettingsForm extends React.Component< constructor(props: RTorrentConnectionSettingsProps) { super(props); this.state = { - type: 'tcp', + type: 'socket', }; } @@ -142,14 +142,6 @@ class RTorrentConnectionSettingsForm extends React.Component< id: 'connection.settings.rtorrent.type', })}> - this.handleFormChange(e, 'type')} - groupID="type" - id="tcp" - grow={false} - checked={type === 'tcp'}> - - this.handleFormChange(e, 'type')} groupID="type" @@ -158,6 +150,14 @@ class RTorrentConnectionSettingsForm extends React.Component< checked={type === 'socket'}> + this.handleFormChange(e, 'type')} + groupID="type" + id="tcp" + grow={false} + checked={type === 'tcp'}> + +