Is it possible to add a function like gethostbyname() to translate a name into IP to be able to use Chiaki outside? If I use the IP address of my router, it works, but it's not convenient when we have a dynamic IP.
So, using a DDNS address sounds a better solution. But, if I use a DDNS entry into the config, Chiaki on Switch, it closes and didn't work. If I change the same field to my public IP address, everything works as expected. I was investigating the source code and saw some code like:
Maybe I just need to change or use a function into a place that returns the IP address to all the structure. I will need more time to understand the flow of the code to be able to change the correct place. Maybe if the dev that knows the code do that, will solve it faster and better (or just point me the source that I need to focus my attention).
So, using a DDNS address sounds a better solution. But, if I use a DDNS entry into the config, Chiaki on Switch, it closes and didn't work. If I change the same field to my public IP address, everything works as expected. I was investigating the source code and saw some code like:
C++:
case HOST_ADDR:
CHIAKI_LOGV(&this->log, "HOST_ADDR %s", value.c_str());
if(current_host != nullptr)
current_host->host_addr = value;
break;
Maybe I just need to change or use a function into a place that returns the IP address to all the structure. I will need more time to understand the flow of the code to be able to change the correct place. Maybe if the dev that knows the code do that, will solve it faster and better (or just point me the source that I need to focus my attention).