mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-05 23:28:44 +00:00
Add favicon passthrough
This commit is contained in:
BIN
src/app/favicon.ico
Normal file
BIN
src/app/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@@ -35,7 +35,6 @@ declare module "react" {
|
||||
type FormState = {
|
||||
username: string;
|
||||
password: string;
|
||||
gatewayAddress: string;
|
||||
hostname: string;
|
||||
domain: string;
|
||||
authtoken: string;
|
||||
@@ -59,7 +58,6 @@ export default function RdpClient() {
|
||||
const [form, setForm] = useState<FormState>({
|
||||
username: "Administrator",
|
||||
password: "Password123!",
|
||||
gatewayAddress: "ws://localhost:8082/rdp",
|
||||
hostname: "172.31.3.58:3389",
|
||||
domain: "",
|
||||
authtoken: "pangolin-browser-gateway-dev",
|
||||
@@ -233,7 +231,9 @@ export default function RdpClient() {
|
||||
.withUsername(form.username)
|
||||
.withPassword(form.password)
|
||||
.withDestination(form.hostname)
|
||||
.withProxyAddress(form.gatewayAddress)
|
||||
.withProxyAddress(
|
||||
`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/gateway/rdp`
|
||||
)
|
||||
.withServerDomain(form.domain)
|
||||
.withAuthToken(form.authtoken)
|
||||
.withDesktopSize({
|
||||
@@ -341,15 +341,6 @@ export default function RdpClient() {
|
||||
}
|
||||
/>
|
||||
</Field>
|
||||
<Field label="Gateway Address" id="gatewayAddress">
|
||||
<Input
|
||||
id="gatewayAddress"
|
||||
value={form.gatewayAddress}
|
||||
onChange={(e) =>
|
||||
update("gatewayAddress", e.target.value)
|
||||
}
|
||||
/>
|
||||
</Field>
|
||||
{/* <Field label="Auth Token" id="authtoken">
|
||||
<Input
|
||||
id="authtoken"
|
||||
|
||||
Reference in New Issue
Block a user