tladesignz / IPtProxy

Obfs4proxy and Snowflake Pluggable Transports for iOS
MIT License
45 stars 11 forks source link

Function to expose snowflake proxy version from go.mod #26

Closed bitmold closed 2 years ago

bitmold commented 2 years ago

Tested, pulls the snowflake version from go.mod,

ie the String v2.2.0 from git.torproject.org/pluggable-transports/snowflake.git/v2 v2.2.0. Figured it'd be nice to display to users, but up to you of course if you think the overhead is worth it :woman_shrugging:

tladesignz commented 2 years ago

You're really into version numbers, are you? 😆 Great job figuring this out!

Ok, I'll merge this. However, please note, I'll make some changes:

  1. I'll rename this to SnowflakeVersion. It's Obfs4proxy and Snowflake. (Yeah, I know, I shouldn't have camel-cased it...)
  2. Go doesn't need parentheses in if statements.
  3. This returns "v2.2.0" compared to Obfs4ProxyVersion returning "0.0.13". I'll add code to strip the "v".