projects
/
routeros-api.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/ros.c: Use the "host" variable.
[routeros-api.git]
/
src
/
ros.c
diff --git
a/src/ros.c
b/src/ros.c
index
1d638b6
..
31aafa8
100644
(file)
--- a/
src/ros.c
+++ b/
src/ros.c
@@
-329,7
+329,7
@@
int main (int argc, char **argv) /* {{{ */
if (passwd == NULL)
exit (EXIT_FAILURE);
- c = ros_connect (
argv[optind]
, ROUTEROS_API_PORT,
+ c = ros_connect (
host
, ROUTEROS_API_PORT,
opt_username, passwd);
memset (passwd, 0, strlen (passwd));
if (c == NULL)