OpenRTM / OpenRTP-aist

OpenRTP-aist: RT-Middleware and OMG RTC based component and system development tools implemented by AIST
Other
1 stars 6 forks source link

IPアドレスに127.0.1.1がセットされている場合に警告メッセージボックスを出す。 #495

Closed n-ando closed 1 year ago

n-ando commented 1 year ago

Is your feature request related to a problem? Please describe. IPアドレスに127.0.1.1がセットされている場合に警告メッセージボックスを出す。

Describe the solution you'd like Debian/Ubuntuの場合、インストーラが /etc/hosts エントリに

127.0.1.1  ubuntu

のような行を追加するが、これがあると、特にJava CORBAはエンドポイントを 127.0.1.1 にしてしまうので問題が生じる。 IPアドレスとして 127.0.1.1 が帰ってきた場合は、以下のメッセージを出すようにしたい。

英語メッセージ

Now host IP address 127.0.1.1. This causes communication errors among OpenRTP and RTCs.
Please comment out the entry begins from 127.0.1.1 in /etc/hosts or set your static address instead of 127.0.1.1.

日本語メッセージ

IPアドレス127.0.1.1がセットされています。OpenRTPとRTC間の通信エラーを引き起こす可能性があります。
/etc/hosts の 127.0.1.1で始まるエントリをコメントアウトするか、代わりに固定IPアドレスをセットしてください。
ga-sakamoto commented 1 year ago

@n-ando さん こちらのお話なのですが,現状のIPアドレス変更検出のタイミングで良いのでしょうか? それとも,RTSE起動時にチェックするのでしょうか?

n-ando commented 1 year ago

@ga-sakamoto さん、RTSE起動時とIPアドレス変更検出時の両方でお願いします。

n-ando commented 1 year ago