Code Review
/
sim
/
o1-interface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug fix.
[sim/o1-interface.git]
/
ntsimulator
/
ntsim-ng
/
core
/
docker.c
diff --git
a/ntsimulator/ntsim-ng/core/docker.c
b/ntsimulator/ntsim-ng/core/docker.c
index
92edc79
..
3d5faa2
100644
(file)
--- a/
ntsimulator/ntsim-ng/core/docker.c
+++ b/
ntsimulator/ntsim-ng/core/docker.c
@@
-446,12
+446,6
@@
static int docker_add_port(cJSON *portBindings, uint16_t docker_port, uint16_t h
return NTS_ERR_FAILED;
}
return NTS_ERR_FAILED;
}
- if(cJSON_AddStringToObject(hostPort, "HostIp", "0.0.0.0") == 0) { //or, future, bind to container->host_ip
- log_error("could not create JSON object: HostIpString\n");
- cJSON_Delete(hostPort);
- return NTS_ERR_FAILED;
- }
-
if(cJSON_AddItemToArray(port, hostPort) == 0) {
log_error("cJSON_AddItemToArray failed\n");
cJSON_Delete(hostPort);
if(cJSON_AddItemToArray(port, hostPort) == 0) {
log_error("cJSON_AddItemToArray failed\n");
cJSON_Delete(hostPort);