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

服务模式没有跟随配置文件 #810

Closed
yiguihai11 opened this issue Apr 18, 2022 · 7 comments
Closed

服务模式没有跟随配置文件 #810

yiguihai11 opened this issue Apr 18, 2022 · 7 comments

Comments

@yiguihai11
Copy link

IMG_20220418_104955
我在配置文件中设置了mode: "tcp_and_udp"但是命令行启动的时候没有加-U依然是tcp_only如上图
如果不是有意为之还请修复一下

@zonyitoo
Copy link
Collaborator

Your local instance is created from command line options, so all the arguments have to be provided.

The mode in the configuration file is only for locals and servers instances.

@yiguihai11
Copy link
Author

Your local instance is created from command line options, so all the arguments have to be provided.

The mode in the configuration file is only for locals and servers instances.

还有一个问题就是使用ssmanager的API添加用户时如何使用acl文件?我在启动ssmanager时命令行参数配置了acl文件,添加一个用户端口后acl访问规则没有生效

@zonyitoo
Copy link
Collaborator

if let Some(ref acl) = self.acl {
server.set_acl(acl.clone());
}

I don't think so, it should work.

Are you using standalone mode? It doesn't work in standalone mode.

@yiguihai11
Copy link
Author

对就是standalone独立模式启动的,然后添加的用户访问一些被acl屏蔽的ip或域名不起作用

@zonyitoo
Copy link
Collaborator

Yes it is expected. Because I don't know the exact path of ACL file in the library.

@yiguihai11
Copy link
Author

能不能在api参数中添加一个acl参数用来指定acl文件位置呢

@zonyitoo
Copy link
Collaborator

Any PRs are welcome. Currently I am working on another project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants