Skip to content

Commit

Permalink
1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Satxm committed Jul 16, 2024
1 parent cc2a369 commit ddc9ca2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

</div>

[1]: https://img.shields.io/modrinth/dt/RTWpcTBp?label=Modrinth%0aDownloads&logo=modrinth&style=flat&color=45A35F&labelColor=2D2D2D
[1]: https://img.shields.io/modrinth/dt/RTWpcTBp?label=Modrinth%0aDownloads&logo=modrinth&style=flat&color=45A35F&labelcolor=2D2D2D
[2]: https://modrinth.com/mod/mcwifipnp

[3]: https://img.shields.io/curseforge/dt/450250?label=CurseForge%0aDownloads&logo=curseforge&style=flat&color=E36639&labelColor=2D2D2D
[3]: https://img.shields.io/curseforge/dt/450250?label=CurseForge%0aDownloads&logo=curseforge&style=flat&color=E36639&labelcolor=2D2D2D
[4]: https://www.curseforge.com/minecraft/mc-mods/mcwifipnp

[5]: https://img.shields.io/badge/Available%20for-%201.15%20to%201.20-47376F?logo=files&color=377BCB&labelColor=2D2D2D
[5]: https://img.shields.io/badge/Available%20for-%201.15%20to%201.20-47376F?logo=files&color=377BCB&labelcolor=2D2D2D
[6]: https://modrinth.com/mod/mcwifipnp/versions

[7]: https://img.shields.io/github/license/Satxm/mcwifipnp?label=License&logo=github&style=flat&color=E51050&labelColor=2D2D2D
[7]: https://img.shields.io/github/license/Satxm/mcwifipnp?label=License&logo=github&style=flat&color=E51050&labelcolor=2D2D2D
[8]: https://github.com/satxm/mcwifipnp


Expand Down
22 changes: 11 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
org.gradle.jvmargs = -Xmx4G
org.gradle.daemon=false
org.gradle.debug=false
org.gradle.daemon = false
org.gradle.debug = false

# Mod Properties
mod_id=mcwifipnp
mod_version=1.7.1
mod_group_id=io.github.satxm.mcwifipnp
mod_id = mcwifipnp
mod_version = 1.7.1
mod_group_id = io.github.satxm.mcwifipnp

# Minecraft Properties
minecraft_version = 1.20.6
Expand All @@ -31,19 +31,19 @@ fabric_loader_version_range = >=0.15.0
fabric_minecraft_version_range = >=1.20.4

# Forge
forge_version_range=[49,)
forge_loader_version_range=[49,)
forge_version_range = [49,)
forge_loader_version_range = [49,)
forge_minecraft_version_range = [1.20.4,1.21)

# NeoForge
neo_version_range=[20.4,)
neo_loader_version_range=[2,)
neo_minecraft_version_range=[1.20.4,1.21)
neo_version_range = [20.4,)
neo_loader_version_range = [2,)
neo_minecraft_version_range = [1.20.4,1.21)

# Quilt
quilt_loader_version_range = >=0.20.0
quilt_qsl_version_range = >=8.0.0-
quilt_minecraft_version_range = >=1.20.2

# Resource Pack
pack_format_number=32
pack_format_number = 32
2 changes: 1 addition & 1 deletion src/main/java/com/dosse/upnp/Gateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Gateway {

public Gateway(byte[] data, Inet4Address ip, InetAddress gatewayip) throws Exception {
iface = ip;
routerip=gatewayip;
routerip = gatewayip;
String location = null;
StringTokenizer st = new StringTokenizer(new String(data), "\n");
while (st.hasMoreTokens()) {
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/dosse/upnp/GatewayFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public GatewayListener(Inet4Address ip, String req) {

@Override
public void run() {
boolean foundgw=false;
Gateway gw=null;
boolean foundgw = false;
Gateway gw = null;
try {
byte[] req = this.req.getBytes();
DatagramSocket s = new DatagramSocket(new InetSocketAddress(ip, 0));
Expand All @@ -69,10 +69,10 @@ public void run() {
DatagramPacket recv = new DatagramPacket(new byte[1536], 1536);
s.receive(recv);
gw = new Gateway(recv.getData(), ip, recv.getAddress());
String extIp= gw.getExternalIP();
String extIp = gw.getExternalIP();
if( (extIp!=null) && (!extIp.equalsIgnoreCase("0.0.0.0")) ){ //Exclude gateways without an external IP
gatewayFound(gw);
foundgw=true;
foundgw = true;
}
} catch (SocketTimeoutException t) {
break;
Expand Down

0 comments on commit ddc9ca2

Please sign in to comment.