update: add host info to the MPTP packets
This commit is contained in:
@ -16,12 +16,12 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
ctx.debug = true;
|
||||
|
||||
if (!lm_ctx_pool_add(&ctx, "test", NULL)) {
|
||||
if (!lm_ctx_pools_add(&ctx, "test", "mptp://127.0.0.1:5858")) {
|
||||
printf("failed to add pool: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
}
|
||||
|
||||
if(!lm_ctx_pool_serve(&ctx, argv[1])) {
|
||||
if (!lm_ctx_pools_serve(&ctx, argv[1])) {
|
||||
printf("failed to serve the pools: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
}
|
||||
|
Reference in New Issue
Block a user