Comments (4)
How is this QRCode generated? It's invalid since it contains two ss:// addresses.
You can try to decode on http://zxing.org/w/decode.jspx
ss://YWVzLTI1Ni1jZmI6b09KemRTUXFhK0hjWXFLL0NsTHdhQ1RkYkQzK2FaM25AMTA3LjE3MC4yMTgu
ss://MTczOjgzODg=
from shadowsocks-ios.
By default, the base64 command wraps encoded output after 76 characters. If a long password was chosen, the output would wrap causing multiple lines to appear in the QR code. The solution was to add the '--wrap=0' flag to the base64 command to prevent this behavior.
This problem wasn't immediately evident to me because the Android Shadowsocks client somehow worked with these invalid QR Codes.
Thank you for your help in troubleshooting the issue!
from shadowsocks-ios.
It wasn't caused by wrapped base64 result. it was caused by multiple ss:// in the input.
在 2014年5月18日,上午5:21,Joshua Lund [email protected] 写道:
By default, the base64 command wraps encoded output after 76 characters. If a long password was chosen, the line would wrap causing multiple lines to appear in the QR code. The solution was to add the '--wrap=0' flag to the base64 command to prevent this behavior.
This problem wasn't immediately evident to me because the Android Shadowsocks client somehow worked with these invalid QR Codes.
Thank you for your help in troubleshooting the issue!
—
Reply to this email directly or view it on GitHub.
from shadowsocks-ios.
Right, but that happened because I didn't know that the base64 command wrapped lines so I wrote a simple sed expression to add 'ss://' to the beginning of the line (thinking there would only be one). The QR code gets generated on line 45 in this file, in case you are curious:
https://github.com/jlund/ansible-shadowsocks/blob/master/tasks/main.yml
Thanks again!
from shadowsocks-ios.
Related Issues (20)
- 无法上网了,上不了外网
- 最近又不能访问了 HOT 4
- openssl/rand.h HOT 1
- IOS
- Potatso lite非常好用,推荐给大家 HOT 4
- 高可用
- shadowsocksX 是用什么命令自动修改 mac 系统的代理配置的?(即safari的代理配置) HOT 2
- Failed to change proxy settings
- Has this project been retired? HOT 2
- Can i please have the icloud account where i can downlaod the shadwosocks HOT 2
- Mac M1 无法使用问题
- He
- Proxzy
- 哪位大佬有xcode13可运行的客户端代码? HOT 4
- 😋
- iPhone
- IOS用shadowrocket配置v2ray,速度比电脑慢
- @thomasfeng123
- www.facebook.com
- 小飞机
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadowsocks-ios.