Compare commits

..

No commits in common. "c5961acbb5d2facfadb907225dbd4956e69d664e" and "58c5875aa74820bd51dd31b423d3d72617f30645" have entirely different histories.

2 changed files with 15 additions and 17 deletions

View File

@ -31,7 +31,6 @@ type Config struct {
LocalAuthMode string `json:"localAuthMode"` //TODO: fix it with migration
WakeOnLanDevices []WakeOnLanDevice `json:"wake_on_lan_devices"`
UsbConfig UsbConfig `json:"usb_config"`
VirtualMediaEnabled bool `json:"virtual_media_enabled"`
}
const configPath = "/userdata/kvm_config.json"
@ -39,10 +38,9 @@ const configPath = "/userdata/kvm_config.json"
var defaultConfig = &Config{
CloudURL: "https://api.jetkvm.com",
AutoUpdateEnabled: true, // Set a default value
VirtualMediaEnabled: true,
UsbConfig: UsbConfig{
VendorId: "0x1d6b", //The Linux Foundation
ProductId: "0x0104", //Multifunction Composite Gadget
ProductId: "0x0104", //Multifunction Composite Gadget¬
SerialNumber: "",
Manufacturer: "JetKVM",
Product: "JetKVM USB Emulation Device",

View File

@ -39,7 +39,7 @@ export function Dialog({ setOpen }: { setOpen: (open: boolean) => void }) {
const handleUsbConfigChange = useCallback((usbConfig: object) => {
send("setUsbConfig", { usbConfig }, resp => {
if ("error" in resp) {
setError(`Failed to update USB Config: ${resp.error.data || "Unknown error"}`);
setError(`Failed to update USB Config: ${resp.error.data || "Unknown error"}`,);
return;
}
setModalView("updateUsbConfigSuccess");