Frequently Asked Questions
Frequently Asked Questions
Section titled “Frequently Asked Questions”This post contains frequently asked questions about Clash Nyanpasu. Please check here first if you have any questions.
Application
Section titled “Application”1. macOS prompts that “Clash Nyanpasu” is damaged and can’t be opened
Section titled “1. macOS prompts that “Clash Nyanpasu” is damaged and can’t be opened”Open Terminal and execute:
sudo xattr -r -d com.apple.quarantine /Applications/Clash\ Nyanpasu.app2. Where is the Clash Nyanpasu config/logs directory?
Section titled “2. Where is the Clash Nyanpasu config/logs directory?”There are currently two ways to open it directly:
-
Right click on the tray icon and select Open Dir - Config Dir. You can open the configuration directory.
-
In the main program interface, navigate to the Settings page, find the Config Dir and click the button to open the configuration directory.
The same can be done for the log directory.
If you need to get the logs yourself, you can navigate to the data directory and find the logs directory, which contains the log files of the current program.
3. How to edit the log level?
Section titled “3. How to edit the log level?”- In the Nyanpasu Setting option on the Settings page, you can find App Log Level to edit the log level, which takes effect immediately after saving.
- Find
nyanpasu-config.yamlin the Config Dir, find theapp_log_levelfield and edit the log level, and restart the app after saving.
The applicable log levels are
trace,debug,info,warn,error, andsilent(no logging).
4. How to enable TUN mode?
Section titled “4. How to enable TUN mode?”- In the Settings Page - System Settings option, enable TUN Mode.
Manual authorization on macOS
Section titled “Manual authorization on macOS”- If authorization is not successful, you can manually execute the following command. After authorization, a restart is still required.
# clash coresudo chown root:admin /Applications/Clash\ Nyanpasu.app/Contents/MacOS/clashsudo chmod +sx /Applications/Clash\ Nyanpasu.app/Contents/MacOS/clash
# mihomo coresudo chown root:admin /Applications/Clash\ Nyanpasu.app/Contents/MacOS/mihomosudo chmod +sx /Applications/Clash\ Nyanpasu.app/Contents/MacOS/mihomo
# mihomo alpha coresudo chown root:admin /Applications/Clash\ Nyanpasu.app/Contents/MacOS/mihomo-alphasudo chmod +sx /Applications/Clash\ Nyanpasu.app/Contents/MacOS/mihomo-alpha
# clash rust coresudo chown root:admin /Applications/Clash\ Nyanpasu.app/Contents/MacOS/clash-rssudo chmod +sx /Applications/Clash\ Nyanpasu.app/Contents/MacOS/clash-rs5. Missing subscription node types
Section titled “5. Missing subscription node types”Some subscription types recognize the User Agent (UA) of the request and deliver the corresponding configuration file based on the UA. The default UA for Nyanpasu is clash-nyanpasu/vx.y.z, where x.y.z represents the app version. If you are unable to retrieve certain types of nodes, it is likely because the subscription provider has not added the Nyanpasu UA for recognition.
Solutions
Section titled “Solutions”- Contact the subscription provider and request support for the Nyanpasu UA;
- Edit the UA to a type supported by the subscription provider, such as
clash-meta, etc.
6. What are program directories and core directories? What are their roles?
Section titled “6. What are program directories and core directories? What are their roles?”In the current version, we refer to the program installation directory as the Application Directory or the Core Directory, which contains all current core and embedded resource files. You can open it by right-clicking the tray or finding the corresponding directory in the settings page.
When you need to manually install Nyanpasu service, you can find the service binaries in this way.