Skip to content

Commit

Permalink
[Bug修复](github-master): 修复UDP广播方法未更新广播地址问题
Browse files Browse the repository at this point in the history
  • Loading branch information
eurigo committed Aug 17, 2021
1 parent e2a1a6f commit f454e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions udplibrary/src/main/java/com/eurigo/udplibrary/UdpUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void run() {
* @param message 消息文本
*/
public void sendBroadcastMessage(Context context, String message) {
getBroadcastHost(context);
setUdpHost(getBroadcastHost(context));
sendMessage(message);
}

Expand All @@ -206,7 +206,7 @@ public void sendBroadcastMessage(Context context, String message) {
* @param map 数据Map
*/
public void sendBroadcastMessage(Context context, Map<String, Object> map) {
getBroadcastHost(context);
setUdpHost(getBroadcastHost(context));
sendMessage(map);
}

Expand Down

0 comments on commit f454e70

Please sign in to comment.