Browse Source

api: fix high port numbers

and convert ccminer.rc from utf-16 to Latin1 (doesnt want utf-8),
required for git diff/merge/rebase...
master
Tanguy Pruvot 10 years ago
parent
commit
0f604439f5
  1. 2
      api.cpp
  2. BIN
      res/ccminer.rc

2
api.cpp

@ -722,7 +722,7 @@ static bool check_connect(struct sockaddr_in *cli, char **connectaddr, char *gro @@ -722,7 +722,7 @@ static bool check_connect(struct sockaddr_in *cli, char **connectaddr, char *gro
static void api()
{
const char *addr = opt_api_allow;
short int port = opt_api_listen; // 4068
unsigned short port = (unsigned short) opt_api_listen; // 4068
char buf[MYBUFSIZ];
int c, n, bound;
char *connectaddr;

BIN
res/ccminer.rc

Binary file not shown.
Loading…
Cancel
Save