mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
refactor: redact the gateway address
This commit is contained in:
parent
3674a28dee
commit
356946e635
@ -1,6 +1,7 @@
|
||||
import { atom } from "jotai";
|
||||
import gatewayService from "../services/gatewayService";
|
||||
import logger from "../utils/logger";
|
||||
import { redact } from "../utils/redact";
|
||||
import { isProcessingAtom, statusAtom } from "./status";
|
||||
import { connectVpnAtom } from "./vpn";
|
||||
|
||||
@ -20,7 +21,7 @@ export const loginGatewayAtom = atom(
|
||||
set(statusAtom, "gateway-login");
|
||||
let token: string;
|
||||
try {
|
||||
logger.info(`Logging in to gateway ${gateway}...`);
|
||||
logger.info(`Logging in to gateway ${redact(gateway)}...`);
|
||||
token = await gatewayService.login(gateway, credential);
|
||||
} catch (err) {
|
||||
throw new Error("Failed to login to gateway");
|
||||
|
Loading…
Reference in New Issue
Block a user