This commit is contained in:
2026-09-02 15:29:47 +08:00
parent 89f55cf884
commit bab8831732
7 changed files with 32 additions and 99 deletions
+3 -3
View File
@@ -11,8 +11,8 @@ import {
import { saveServerDomain } from '../services/api';
const PRESETS = [
{ label: '192.168.1.117:16000', host: '192.168.1.117', port: '16000' },
{ label: 'aa.pfgame.org', host: 'aa.pfgame.org', port: '443' },
{ label: '192.168.1.117:16000', host: '192.168.1.117', port: '16000' },
];
type Props = {
@@ -62,7 +62,7 @@ export const ServerSettingsModal: React.FC<Props> = ({
style={styles.textInput}
value={host}
onChangeText={onHostChange}
placeholder="192.168.1.117"
placeholder="aa.pfgame.org"
autoCapitalize="none"
/>
<Text style={styles.inputLabel}>Port</Text>
@@ -70,7 +70,7 @@ export const ServerSettingsModal: React.FC<Props> = ({
style={[styles.textInput, { marginBottom: 20 }]}
value={port}
onChangeText={onPortChange}
placeholder="16000"
placeholder="443"
keyboardType="number-pad"
/>
<View style={styles.actions}>