Skip to content

Commit 2cd2a02

Browse files
committed
1.2.1, fix config bug.
1 parent 1c830a1 commit 2cd2a02

File tree

103 files changed

+13
-83
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+13
-83
lines changed

README.md

+1-1

data/launcher/config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
modules:
2-
goagent: {auto_start: 1, current_version: 3.1.36, ignore_version: 3.1.36}
2+
goagent: {auto_start: 1, current_version: 3.1.37, ignore_version: 3.1.37}
33
launcher: {current_version: 1.0.4, ignore_version: 1.0.4}
44
update: {check_update: 1, last_path: /, node_id: '0',
55
uuid: 0}

goagent/3.1.36/web_ui/status.html~

-74
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

goagent/3.1.36/local/config.py renamed to goagent/3.1.37/local/config.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ def load(self):
8484
self.PROXY_ENABLE = self.CONFIG.getint('proxy', 'enable')
8585
self.PROXY_TYPE = self.CONFIG.get('proxy', 'type')
8686
self.PROXY_HOST = self.CONFIG.get('proxy', 'host')
87-
self.PROXY_PORT = self.CONFIG.getint('proxy', 'port')
87+
self.PROXY_PORT = self.CONFIG.get('proxy', 'port')
88+
if self.PROXY_PORT == "":
89+
self.PROXY_PORT = 0
90+
else:
91+
self.PROXY_PORT = int(self.PROXY_PORT)
8892
self.PROXY_USER = self.CONFIG.get('proxy', 'user')
8993
self.PROXY_PASSWD = self.CONFIG.get('proxy', 'passwd')
9094

@@ -101,7 +105,7 @@ def info(self):
101105
if self.CONTROL_ENABLE:
102106
info += 'Control Address : %s:%d\n' % (self.CONTROL_IP, self.CONTROL_PORT)
103107
if self.PROXY_ENABLE:
104-
info += '%s Proxy : %s:%d\n' % (self.PROXY_TYPE, self.PROXY_HOST, self.PROXY_PORT)
108+
info += '%s Proxy : %s:%s\n' % (self.PROXY_TYPE, self.PROXY_HOST, self.PROXY_PORT)
105109
info += 'Debug INFO : %s\n' % self.LISTEN_DEBUGINFO if self.LISTEN_DEBUGINFO else ''
106110
info += 'GAE APPID : %s\n' % '|'.join(self.GAE_APPIDS)
107111
if self.PAC_ENABLE:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

goagent/3.1.36/local/web_control.py renamed to goagent/3.1.37/local/web_control.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class User_config(object):
5151
proxy_enable = "0"
5252
proxy_type = "HTTP"
5353
proxy_host = ""
54-
proxy_port = "0"
54+
proxy_port = ""
5555
proxy_user = ""
5656
proxy_passwd = ""
5757

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

goagent/3.1.36/web_ui/config.html renamed to goagent/3.1.37/web_ui/config.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ <h2>配置GoAgent</h2>
3434
<script src="/js/jquery-1.11.2.min.js"></script>
3535
<script type="text/javascript">
3636
$.post( "http://127.0.0.1:8084/config?cmd=get_config", {}, function( data ) {
37-
var data = JSON.parse(data);
3837
$( "#gae_appid" ).val(data.appid);
3938
$( "#gae_passwd" ).val(data.passwd);
4039
if(data.proxy_enable == 1){
@@ -69,9 +68,10 @@ <h2>配置GoAgent</h2>
6968
proxy_passwd = $("#proxy_passwd").val();
7069

7170
$.post( "http://127.0.0.1:8084/config?cmd=set_config", {"appid":appid, "passwd": passwd,
72-
"proxy_enable":proxy_enable, "proxy_type":proxy_type, "proxy_host":proxy_host, "proxy_port":proxy_port,
73-
"proxy_user":proxy_user, "proxy_passwd":proxy_passwd,},
74-
function( data ) {
71+
"proxy_enable":proxy_enable, "proxy_type":proxy_type, "proxy_host":proxy_host, "proxy_port":proxy_port,
72+
"proxy_user":proxy_user, "proxy_passwd":proxy_passwd,},
73+
function( data ) {
74+
7575
res = data.res
7676
if(res == "success") {
7777
$("#status").html(res)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)