RTorrentConnectionSettingsForm: Socket first, TCP second

R -> S -> T

Plus, socket connection type is preferred due to the added security.
This commit is contained in:
Jesse Chan
2020-10-31 23:23:39 +08:00
parent b268c526b1
commit a293495264
@@ -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',
})}>
<FormRow>
<Radio
onChange={(e) => this.handleFormChange(e, 'type')}
groupID="type"
id="tcp"
grow={false}
checked={type === 'tcp'}>
<FormattedMessage id="connection.settings.rtorrent.type.tcp" />
</Radio>
<Radio
onChange={(e) => this.handleFormChange(e, 'type')}
groupID="type"
@@ -158,6 +150,14 @@ class RTorrentConnectionSettingsForm extends React.Component<
checked={type === 'socket'}>
<FormattedMessage id="connection.settings.rtorrent.type.socket" />
</Radio>
<Radio
onChange={(e) => this.handleFormChange(e, 'type')}
groupID="type"
id="tcp"
grow={false}
checked={type === 'tcp'}>
<FormattedMessage id="connection.settings.rtorrent.type.tcp" />
</Radio>
</FormRow>
</FormGroup>
</FormRow>