1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 16:58:05 +00:00

Merge pull request #290 from kanoi/api

api.c update API start message and include port number
This commit is contained in:
Con Kolivas 2012-08-06 18:33:50 -07:00
commit 13a92bbd3c

6
api.c
View File

@ -3241,12 +3241,12 @@ void api(int api_thr_id)
} }
if (opt_api_allow) if (opt_api_allow)
applog(LOG_WARNING, "API running in IP access mode"); applog(LOG_WARNING, "API running in IP access mode on port %d", port);
else { else {
if (opt_api_network) if (opt_api_network)
applog(LOG_WARNING, "API running in UNRESTRICTED access mode"); applog(LOG_WARNING, "API running in UNRESTRICTED read access mode on port %d", port);
else else
applog(LOG_WARNING, "API running in local access mode"); applog(LOG_WARNING, "API running in local read access mode on port %d", port);
} }
io_buffer = malloc(MYBUFSIZ+1); io_buffer = malloc(MYBUFSIZ+1);