Seafile_fastcgi_host

Hi,

Seahub starts on 127.0.0.1 with fastcgi enabled in startup script.
i need to change it to start on 0.0.0.0 instead. How can I do this:

I found the following in seahub.sh:

function start_seahub_fastcgi () {
    before_start;

    # Returns 127.0.0.1 if SEAFILE_FASTCGI_HOST is unset or hasn't got any value,
    # otherwise returns value of SEAFILE_FASTCGI_HOST environment variable
    address=`(test -z "$SEAFILE_FASTCGI_HOST" && echo "127.0.0.1") || echo $SEAFILE_FASTCGI_HOST`

    echo "Starting seahub (fastcgi) at ${address}:${port} ..."
    check_init_admin;
    $PYTHON "${manage_py}" runfcgi host=$address port=$port pidfile=$pidfile \
        outlog=${accesslog} errlog=${errorlog}

    # Ensure seahub is started successfully
    sleep 5
    if ! pgrep -f "${manage_py}" 1>/dev/null; then
        printf "\033[33mError:Seahub failed to start.\033[m\n"
        exit 1;
    fi
    echo
    echo "Seahub is started"
    echo
}

Where do I set the SEAFILE_FASTCGI_HOST ?

export SEAFILE_FASTCGI_HOST=0.0.0.0
./seahub.sh restart-fastcgi

Thank you very much.
Is this something I add in seahub.sh?

I put it like this:

function start_seahub_fastcgi () {
    before_start;
    export SEAFILE_FASTCGI_HOST=0.0.0.0
    ...
    ...
    ...

Now I see 0.0.0.0:8000 in netstat, great!
Unfortunately, now i cannot connect to Seafile server at all using my client:( fastcgi is not being liked:(