shadowsocks_ruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.travis.yml +11 -3
- data/Dockerfile +6 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +1 -1
- data/README.md +12 -4
- data/lib/shadowsocks_ruby/cipher/rbnacl.rb +1 -1
- data/lib/shadowsocks_ruby/version.rb +1 -1
- data/shadowsocks_ruby.gemspec +2 -2
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 127f383fcb9b1c8ebb3147efeb46a85a106d91e3
|
4
|
+
data.tar.gz: ee48663ca80918a7fddf7577a2c54855fecd1c24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6fa2cc3b0c1eb02a7185273b93093e1b4dc38fd69b1be91bcebc21de11c5c1e800017e4ecb0d2e40bf0defd7e13be6bda2bc3102e73d0f9e7c83ae4638a4753
|
7
|
+
data.tar.gz: b327c08e182c7bbf3942219225cdb8e6ed0a8dbc8e3f109cebc402d529b059f649854929b0686d1de447e07b92a300f52fc45f16f657009ada59dc2f92d79df7
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.travis.yml
CHANGED
data/Dockerfile
ADDED
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# ShadowsocksRuby
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/shadowsocks_ruby.svg)](http://badge.fury.io/rb/shadowsocks_ruby)
|
4
|
+
[![Build Status](https://travis-ci.org/zhenkyle/shadowsocks_ruby.svg?branch=master)](https://travis-ci.org/zhenkyle/shadowsocks_ruby)
|
5
|
+
[![Dependency Status](https://gemnasium.com/zhenkyle/shadowsocks_ruby.svg)](https://gemnasium.com/zhenkyle/shadowsocks_ruby)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/zhenkyle/shadowsocks_ruby.svg)](https://codeclimate.com/github/zhenkyle/shadowsocks_ruby)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/zhenkyle/shadowsocks_ruby/badge.svg?branch=master)](https://coveralls.io/r/zhenkyle/shadowsocks_ruby?branch=master)
|
8
|
+
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zhenkyle/shadowsocks_ruby/blob/master/LICENSE.txt)
|
9
|
+
[![Join the chat at https://gitter.im/shadowsocks_ruby/Lobby](https://badges.gitter.im/shadowsocks_ruby/Lobby.svg)](https://gitter.im/shadowsocks_ruby/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
10
|
+
|
11
|
+
ShadowsocksRuby is a flexible platform for writing [shadowsocks](https://github.com/shadowsocks/shadowsocks) like tunnel proxy to help you bypass firewalls. With layered protocol strategy, TCP/UDP/(even TLS) connection object and powerful DSL backended by ruby, it make your life easy to develop new tunnel (layer 4) protocols.
|
4
12
|
|
5
13
|
Main features include:
|
6
14
|
|
@@ -98,7 +106,7 @@ Common options:
|
|
98
106
|
# Then on local machine
|
99
107
|
sslocal-ruby -k secret -s 1.2.3.4
|
100
108
|
|
101
|
-
#Then using `127.0.0.1:1080` as your local SOCKS5
|
109
|
+
# Then using `127.0.0.1:1080` as your local SOCKS5 proxy.
|
102
110
|
|
103
111
|
|
104
112
|
## Development
|
@@ -117,8 +125,8 @@ module ShadowsocksRuby
|
|
117
125
|
|
118
126
|
def tcp_receive_from_client_first_packet n
|
119
127
|
data = async_recv(8)
|
120
|
-
v, c, port, o1, o2, o3, o4
|
121
|
-
|
128
|
+
v, c, port, o1, o2, o3, o4 = data.unpack("CCnC4")
|
129
|
+
user << async_recv_until("\0")
|
122
130
|
if v != 4 or c != 1
|
123
131
|
send_data "\0\x5b\0\0\0\0\0\0"
|
124
132
|
raise PharseError, "SOCKS version or command not supported: #{v}, #{c}"
|
data/shadowsocks_ruby.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = "zhenkyle@gmail.com"
|
11
11
|
|
12
12
|
spec.summary = %q{A flexible platform for writing tunnel proxy to help you bypass firewalls.}
|
13
|
-
spec.description = %q{ShadowsocksRuby is a flexible platform for writing
|
13
|
+
spec.description = %q{ShadowsocksRuby is a flexible platform for writing SOCKS (layer 4) like tunnel proxy to help you bypass firewalls.}
|
14
14
|
spec.homepage = "https://github.com/zhenkyle/shadowsocks_ruby"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 1.13"
|
35
|
-
spec.add_development_dependency "rake", "~>
|
35
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
36
36
|
spec.add_development_dependency "rspec", "~> 3.0"
|
37
37
|
spec.add_development_dependency "evented-spec", "~> 1.0.0.beta2"
|
38
38
|
spec.add_development_dependency "em-http-request", "~> 1.1.5"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shadowsocks_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zhenkyle
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,8 +192,8 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
description: ShadowsocksRuby is a flexible platform for writing
|
196
|
-
|
195
|
+
description: ShadowsocksRuby is a flexible platform for writing SOCKS (layer 4) like
|
196
|
+
tunnel proxy to help you bypass firewalls.
|
197
197
|
email: zhenkyle@gmail.com
|
198
198
|
executables:
|
199
199
|
- sslocal-ruby
|
@@ -201,11 +201,13 @@ executables:
|
|
201
201
|
extensions: []
|
202
202
|
extra_rdoc_files: []
|
203
203
|
files:
|
204
|
+
- ".coveralls.yml"
|
204
205
|
- ".gitignore"
|
205
206
|
- ".rspec"
|
206
207
|
- ".travis.yml"
|
207
208
|
- ".yardopts"
|
208
209
|
- CODE_OF_CONDUCT.md
|
210
|
+
- Dockerfile
|
209
211
|
- Gemfile
|
210
212
|
- LICENSE.txt
|
211
213
|
- README.md
|