Skip to content

Commit 95b3e7a

Browse files
committed
Improve renaming consistency for setting custom proxy
1 parent a94e4c4 commit 95b3e7a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Location.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { HistoryEntry } from '@/composables/useProxyHistory/HistoryEntries.
1717
const { customProxyHost, customProxySelect, toggleLocations } = useLocations();
1818
const { clearFilter, filteredProxies } = useSocksProxies();
1919
20-
const { setCurrentHostProxy, setGlobalProxy } = useSocksProxy();
20+
const { setCustomProxy, setGlobalProxy } = useSocksProxy();
2121
const { storeSocksProxyUsage } = useProxyHistory();
2222
2323
const currentOrAllWebsites = computed(() =>
@@ -36,7 +36,7 @@ const setProxy = (
3636
toggleLocations();
3737
3838
if (customProxySelect.value) {
39-
setCurrentHostProxy(
39+
setCustomProxy(
4040
{ country, countryCode, city, hostname, ipv4_address, port },
4141
customProxyHost.value,
4242
);

src/composables/useSocksProxy.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const setGlobalProxy = ({
164164
reloadGlobalProxiedTabs(combinedHosts.value);
165165
};
166166

167-
const setCurrentHostProxy = (
167+
const setCustomProxy = (
168168
{
169169
country,
170170
countryCode,
@@ -244,7 +244,7 @@ const useSocksProxy = () => {
244244
neverProxyHost,
245245
removeCustomProxy,
246246
removeGlobalProxy,
247-
setCurrentHostProxy,
247+
setCustomProxy,
248248
setGlobalProxy,
249249
toggleDomainProxy,
250250
toggleSubDomainProxy,

0 commit comments

Comments
 (0)