shadowsocks-android icon indicating copy to clipboard operation
shadowsocks-android copied to clipboard

confused by SIP002 URI Scheme

Open lanx-x opened this issue 9 years ago • 4 comments

At page SIP002 URI Scheme, it says:

The last / should be appended if plugin or tag is present.

But at the same page:

Examples: - ss://[email protected]:8888#Example1 - ss://[email protected]:8888/?plugin=obfs-local%3Bobfs%3Dhttp#Example2

The example1 doesn't contains "/". And the shadowsocks-android acts like example1.

so, should the last / be appended if plugin or tag is present? Or just be appended if plugin present?

lanx-x avatar Aug 10 '17 14:08 lanx-x

Good question.

What do you think? @Mygod

madeye avatar Aug 11 '17 10:08 madeye

I think / is optional but recommended.

Mygod avatar Aug 11 '17 10:08 Mygod

Let me refine the description and implementation.

madeye avatar Aug 11 '17 10:08 madeye

Fixed via https://github.com/shadowsocks/shadowsocks-org/commit/a682aaa97652464a2e67f99f11b8f56ef081d2fb.

madeye avatar Aug 12 '17 14:08 madeye