fix: calcMinLatency should skip no latency dialer

This commit is contained in:
mzz2017
2023-02-09 20:54:06 +08:00
parent 8bb88ed20a
commit e3a71d0ee2
2 changed files with 5 additions and 2 deletions

View File

@ -89,7 +89,7 @@ func resolveFile(u *url.URL, configDir string) (b []byte, err error) {
return nil, fmt.Errorf("not support absolute path")
}
/// Relative location.
// Make sure path safety.
// Make sure path is secure.
path := filepath.Join(configDir, u.Host, u.Path)
if err = common.IsFileInSubDir(path, configDir); err != nil {
return nil, err