Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IS_IPB and TINY_IPB #48

Merged
merged 2 commits into from
Jul 28, 2024
Merged

Add IS_IPB and TINY_IPB #48

merged 2 commits into from
Jul 28, 2024

Conversation

mkapal
Copy link
Member

@mkapal mkapal commented Jul 28, 2024

  • Added IS_IPB packet
  • Added TINY_IPB into the TinyType enum

You can use the IS_IPB packet to set up to 120 IPv4 addresses that are not allowed to join a host.

The IP addresses assigned to the BanIPs property must be in a string format X.X.X.X where X is a number from 0 to 255. If some of the IP addresses are invalid, a RangeError will be thrown.

Code examples

IS_IPB

inSim.send(
  new IS_IPB({
    BanIPs: ['1.2.3.4', '2.2.2.2', '5.5.5.5'],
  }),
);

TINY_IPB

inSim.send(
  new IS_TINY({
    ReqI: 1,
    SubT: TinyType.TINY_IPB,
  }),
);

@mkapal mkapal self-assigned this Jul 28, 2024
Copy link

github-actions bot commented Jul 28, 2024

Test Results

222 tests  +6   222 ✅ +6   28s ⏱️ +2s
 84 suites +1     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c701e6f. ± Comparison against base commit d1b4c7e.

♻️ This comment has been updated with latest results.

mkapal added 2 commits July 28, 2024 14:42
You can use the IS_IPB packet to set up to 120 IPv4 addresses that are not allowed to join a host.

The IP addresses assigned to the `BanIPs` property must be in a string format `X.X.X.X` where `X` is a number from 0 to 255. If some of the IP addresses are invalid, a `RangeError` will be thrown.

fix #47
Added `TINY_IPB` into the `TinyType` enum.

fix #47
@mkapal mkapal force-pushed the feature/IS_IPB+TINY_IPB branch from 7e81e7c to c701e6f Compare July 28, 2024 12:42
@mkapal mkapal merged commit c50c6c1 into master Jul 28, 2024
4 checks passed
@mkapal mkapal deleted the feature/IS_IPB+TINY_IPB branch July 28, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant