Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webui貌似无法使用ipv6 #586

Open
3 tasks done
Lucas2011wastaken opened this issue Jul 21, 2024 · 4 comments
Open
3 tasks done

webui貌似无法使用ipv6 #586

Lucas2011wastaken opened this issue Jul 21, 2024 · 4 comments
Labels
bug / 缺陷 Something isn't working

Comments

@Lucas2011wastaken
Copy link

在提问之前...

  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我正在使用最新版的 SRC

描述你的问题

由于更换了支持ipv6的宽带,我就想着把原来用内网穿透做的远程控制改成用ipv6直连,怎么都连不上。(ipv6地址已经测试过连接性,smb共享、远程桌面、sunshine串流都没问题)
于是在deploy.yaml中按照指示(# [Use IPv6] '::')将WebuiHost: 0.0.0.0改成了WebuiHost: ::
然后SRC就打不开了

如何复现

  1. 更改了deploy.yaml,将WebuiHost: 0.0.0.0改成了WebuiHost: ::
  2. 打开应用
  3. 出现问题无法弹出窗口,只有error(见截图)

预期行为

正常打开应用

相关 Logs

以`.txt`的形式提交

截图

image

还有别的吗?

log.zip

@Lucas2011wastaken Lucas2011wastaken added the bug / 缺陷 Something isn't working label Jul 21, 2024
@Lucas2011wastaken
Copy link
Author

但是如果用长的形式0:0:0:0:0:0:0:0就可以正常使用webui,但是src程序的界面就无法正常使用
附图:
image

@ZhaoZuohong
Copy link

试试在 :: 两边套上引号:

WebuiHost: "::"

@Lucas2011wastaken
Copy link
Author

替换后和这个结果一样,进不去src主界面,但是可以用webui

但是如果用长的形式0:0:0:0:0:0:0:0就可以正常使用webui,但是src程序的界面就无法正常使用 附图: image

@LmeSzinc
Copy link
Owner

需要修改此处的 webuiUrl,正则判断 WebuiHost 为 ipv6 时,访问v6形式的本地地址

let alasConfig: AlasConfig | null = null;
export async function getAlasConfig() {
if (alasConfig === null) {
const alasPath = getAlasABSPath();
const file = fs.readFileSync(path.join(alasPath, `./config/${ALAS_CONFIG_YAML}`), 'utf8');
const config = yaml.parse(file) as DefAlasConfig;
const WebuiPort = config.Deploy.Webui.WebuiPort.toString();
const Theme = config.Deploy.Webui.Theme;
alasConfig = {
webuiUrl: `http://127.0.0.1:${WebuiPort}`,
theme: ThemeObj[Theme] || 'light',
language: config.Deploy.Webui.Language || 'en-US',
repository: config.Deploy.Git.Repository as any,
alasPath,
};
}
return alasConfig;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / 缺陷 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants