Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Nov 2, 2014
1 parent bd88844 commit 39e90f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.6.3 2014-11-01
0.6.4 2014-11-01
- Support share over LAN

0.6.2 2014-10-12
Expand Down
6 changes: 4 additions & 2 deletions main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shadowsocks-gui",
"main": "index.html",
"description": "shadowsocks client with GUI",
"version": "0.6.3",
"version": "0.6.4",
"keywords": [ "shadowsocks", "node-webkit" ],
"single-instance": false,
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ $ ->
val = config[key] or ''
if this.type == 'checkbox'
this.checked = val
config[key] = this.checked
else
$(this).val(val)
config[key] = this.value
config[key] = this.value
if restart
restartServer config

Expand All @@ -139,7 +140,8 @@ $ ->
try
isRestarting = false
util.log 'Starting shadowsocks...'
window.local = local.createServer config.server, config.server_port, config.local_port, config.password, config.method, 1000 * 600, if config.share then '::' else '127.0.0.1'
console.log config
window.local = local.createServer config.server, config.server_port, config.local_port, config.password, config.method, 1000 * 600, if config.share then '0.0.0.0' else '127.0.0.1'
addServer config.server
$('#divError').fadeOut()
gui.Window.get().hide()
Expand Down

0 comments on commit 39e90f2

Please sign in to comment.