mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
sonic: use ::1 as default target
This commit is contained in:
1 parent
b4ac4da1fd
commit
3171277252
3 files changed
+5
-5
No files matched your search
@@ -98,9 +98,9 @@ export async function setting(pending: string[], fail: string[], modelSetting: t
|
||||
if (!fs.existsSync(p)) p = path.resolve(i, 'settings.yaml');
|
||||
if (fs.existsSync(p) && !fail.includes(i)) {
|
||||
try {
|
||||
const cfg: any = yaml.load(fs.readFileSync(p).toString());
|
||||
const cfg: any = yaml.load(fs.readFileSync(p, 'utf-8'));
|
||||
for (const key in cfg) {
|
||||
let val = cfg[key].default;
|
||||
let val = cfg[key].default || cfg[key].value;
|
||||
if (typeof val === 'string') {
|
||||
val = val
|
||||
.replace(/\$TEMP/g, os.tmpdir())
|
||||
|
||||
Reference in new issue
Block a user