diff --git a/src/renderer/pages/PicGoSetting.vue b/src/renderer/pages/PicGoSetting.vue index 39237bf..b252607 100644 --- a/src/renderer/pages/PicGoSetting.vue +++ b/src/renderer/pages/PicGoSetting.vue @@ -1746,7 +1746,7 @@ const logLevel = { const server = ref({ port: 36677, - host: '127.0.0.1', + host: '0.0.0.0', enable: true }) @@ -1859,7 +1859,7 @@ async function initData () { mainWindowHeight.value = settings.mainWindowHeight || 800 server.value = settings.server || { port: 36677, - host: '127.0.0.1', + host: '0.0.0.0', enable: true } advancedRename.value = config.buildIn?.rename || { @@ -2305,7 +2305,7 @@ async function cancelServerSetting () { serverVisible.value = false server.value = await getConfig('settings.server') || { port: 36677, - host: '127.0.0.1', + host: '0.0.0.0', enable: true } } diff --git a/src/renderer/pages/picbeds/index.vue b/src/renderer/pages/picbeds/index.vue index 7b4256a..96892af 100644 --- a/src/renderer/pages/picbeds/index.vue +++ b/src/renderer/pages/picbeds/index.vue @@ -238,7 +238,10 @@ async function handleCopyApi () { port: 36677, host: '127.0.0.1' } - const { port, host } = serverConfig + let { port, host } = serverConfig + if (host === '0.0.0.0') { + host = '127.0.0.1' + } const uploader = await getConfig('uploader') as IStringKeyMap || {} const picBedConfigList = uploader[$route.params.type as string].configList || [] const picBedConfig = picBedConfigList.find((item: IUploaderConfigListItem) => item._id === $route.params.configId)