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

curl not found #2

Closed
tiann opened this issue Dec 24, 2023 · 6 comments
Closed

curl not found #2

tiann opened this issue Dec 24, 2023 · 6 comments

Comments

@tiann
Copy link
Contributor

tiann commented Dec 24, 2023

Some device doesn't have curl, this would fail forever: https://github.com/anasfanani/Magisk-Tailscaled/blob/main/service.sh#L8C5-L8C21

maybe we can simply use ping -c 1.1.1.1?

By the way, this module is proved to work well on KernelSU after commit: 6c86fd1 ;) You don't need to create a module for it separately, it is compatible with Magisk module.

@anasfanani
Copy link
Owner

Some device doesn't have curl, this would fail forever: https://github.com/anasfanani/Magisk-Tailscaled/blob/main/service.sh#L8C5-L8C21
maybe we can simply use ping -c 1.1.1.1?

I have implement to use ping here, but some people in social media, suggest me to use curl, some device would fail because can't use ICMP, example : people with proxy tools called openclash, sing-box, box for magisk, clash for magisk,I agree with them because I have also experienced ping failure but not with curl.
As far I know , the magisk service.sh will executed in the ash shell of BusyBox, every single command will directly use the applet within BusyBox, then I check in the /data/adb/magisk/busybox have wget applet, maybe I can use wget instead of ping ?
I also think whether internet check is needed or not, I need to confirm it, if not needed, then I can delete the internet check.

By the way, this module is proved to work well on KernelSU after commit: 6c86fd1 ;) You don't need to create a module for it separately, it is compatible with Magisk module.

Thankyou, I will update the README.md later.

@tiann
Copy link
Contributor Author

tiann commented Dec 24, 2023

As far I know , the magisk service.sh will executed in the ash shell of BusyBox, every single command will directly use the applet within BusyBox, then I check in the /data/adb/magisk/busybox have wget applet, maybe I can use wget instead of ping ?

I think wget is a good solution. And KernelSU has the same behavior, it will work too.

@anasfanani
Copy link
Owner

I think wget is a good solution. And KernelSU has the same behavior, it will work too.

I have tested to remove the internet connection check before running tailscaled, apparently it has no effect at all, I will remove this unnecessary internet check because tailscaled will connect automatically if internet is available.

Anyway, thanks for your feedback, I just found out you own the KernelSU repository, it's an honor to get feedback from you.

@tiann
Copy link
Contributor Author

tiann commented Dec 25, 2023

Thank you for the amazing module, it is really helpful :)

@anasfanani
Copy link
Owner

Thank you for the amazing module, it is really helpful :)

You're welcome, I fix some some problem, can you try this https://github.com/anasfanani/Magisk-Tailscaled/releases/tag/v1.56.1.2-beta

@tiann
Copy link
Contributor Author

tiann commented Dec 29, 2023

Thank you for the amazing module, it is really helpful :)

You're welcome, I fix some some problem, can you try this https://github.com/anasfanani/Magisk-Tailscaled/releases/tag/v1.56.1.2-beta

It works as expected.

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