2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-18 09:10:23 +00:00

Merge pull request #4390 from chenglch/goconserver

Listen on 0.0.0.0 instead of the hostname for goconserver
This commit is contained in:
Gᴏɴɢ Jie
2017-12-01 15:23:06 +08:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -149,7 +149,8 @@ elif [ $USE_GOCONSERVER == "1" ]; then
CONGO_SSL_CERT=$HOME/.xcat/client-cred.pem \
CONGO_SSL_CA_CERT=$HOME/.xcat/ca.pem \
CONGO_PORT=12430 \
CONGO_SERVER_HOST=$CONSERVER"
CONGO_SERVER_HOST=$CONSERVER \
CONGO_URL=https://$CONSERVER:12429"
if [ "$CONSERVER" == `hostname` ]; then
exec env $CONGO_ENV /usr/bin/congo console $1

View File

@@ -324,7 +324,7 @@ sub start_goconserver {
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0) {
my $config= "global:\n".
" host: $host\n".
" host: 0.0.0.0\n".
" ssl_key_file: /etc/xcat/cert/server-key.pem\n".
" ssl_cert_file: /etc/xcat/cert/server-cert.pem\n".
" ssl_ca_cert_file: /etc/xcat/cert/ca.pem\n".