We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc19378 commit 294ee1aCopy full SHA for 294ee1a
1 file changed
index.html
@@ -166,7 +166,7 @@
166
167
function App() {
168
const [endpoint, setEndpoint] = useState("http://shell.opencloudshell.com/connect.php");
169
- const [port, setPort] = useState("10022");
+ const [port, setPort] = useState("");
170
const [destination, setDestination] = useState("user@localhost");
171
const [password, setPassword] = useState("");
172
const [key, setKey] = useState("");
@@ -178,7 +178,11 @@
178
179
try {
180
const url = new URL(base);
181
- url.searchParams.set("port", port);
+ if (port.trim()) {
182
+ url.searchParams.set("port", port);
183
+ } else {
184
+ url.searchParams.delete("port");
185
+ }
186
url.searchParams.set("destination", destination);
187
if (password.trim()) {
188
url.searchParams.set("password", password);
0 commit comments