feat: set proxy
This commit is contained in:
@@ -101,6 +101,7 @@ const ProxyForm: React.FC = () => {
|
|||||||
const response = await sendProxyConfig(proxyConfigForm);
|
const response = await sendProxyConfig(proxyConfigForm);
|
||||||
if (response) {
|
if (response) {
|
||||||
setIsProxyConfigured(true);
|
setIsProxyConfigured(true);
|
||||||
|
setProxy({ proxy_url: proxyConfigForm.server_url, auth: requiresAuth });
|
||||||
notify('success', t('proxy.notifications.config_success'));
|
notify('success', t('proxy.notifications.config_success'));
|
||||||
} else {
|
} else {
|
||||||
notify('error', t('proxy.notifications.config_error'));
|
notify('error', t('proxy.notifications.config_error'));
|
||||||
|
|||||||
Reference in New Issue
Block a user