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

[Feature request] Executable does not fit to 8MB openwrt devices. Nearly 100% of inexpensive Openwrt routers have 8MB onboard. #71

Open
baiomys opened this issue Aug 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@baiomys
Copy link

baiomys commented Aug 3, 2024

Even GZip compression and extraction to RAM requires 6 MB of space.
Can it be handled in any possible way?

Maybe split to server/client app, socks5/http, etc.

Main advantage of this app is limited feature set and small size, pls do not create another monster like GOST.

=)

@baiomys baiomys changed the title [Feature request] Executable does not fit to 8MB openwrt devices. Nearly 100% of inexpensive Openwrt routers have 8Mb onboard. [Feature request] Executable does not fit to 8MB openwrt devices. Nearly 100% of inexpensive Openwrt routers have 8MB onboard. Aug 3, 2024
@genshen genshen added the enhancement New feature or request label Aug 15, 2024
genshen added a commit that referenced this issue Aug 15, 2024
@genshen
Copy link
Owner

genshen commented Aug 16, 2024

Splitting server side and client side does not reduce too much size (can only reduce about 0.6 MB).
A possible approach is to add building flag -ldflags="-s -w" to remove debug info (now, the binary size on linux-arm is about 6.7M).

see commit b590078

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

No branches or pull requests

2 participants