Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.0.0+261028"
current_version = "1.0.1+261028"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)\\+(?P<build>\\d+)"
serialize = ["{major}.{minor}.{patch}+{build}"]
search = "{current_version}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mumblermapi"
version = "1.0.0+261028"
version = "1.0.1+261028"
description = "Murmur (Mumble server) integration for the OpenDefence platform"
license = { text = "GPL-2.0-only" }
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/mumblermapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Murmur integration for the OpenDefence platform"""

__version__ = "1.0.0+261028"
__version__ = "1.0.1+261028"
7 changes: 4 additions & 3 deletions src/mumblermapi/enforce.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ def refused(policy: Policy, sessions: Iterable[Session]) -> tuple[int, ...]:
def shadows(channels: list[ExistingChannel], missions_root: int) -> dict[int, int]:
"""Temporary channels outside Missions/ named like a mission net, mapped to that net.

XVoice creates a temporary channel named after the mission when it finds no net by that name, and it finds
nets by name alone, so such a channel would be an ungated copy of the mission's net.
A client that finds nets by name alone may create a temporary channel named after a mission net it cannot
find, as XVoice, which ODVoice is built from, did. Such a channel would be an ungated copy of the mission's
net.
"""
parents = {c.id: c.parent for c in channels}
nets = {c.name: c.id for c in channels if c.parent == missions_root}
Expand Down Expand Up @@ -206,7 +207,7 @@ def violations(

Murmur checks ACLs only when someone enters or starts listening, and routes audio to listeners without
checking again, so whoever lost access since has to be removed here. Sessions in a shadowing channel go to
the real net when it admits them, which XVoice takes as the net it wanted, and to the root otherwise.
the real net when it admits them, which such a client takes as the net it wanted, and to the root otherwise.
"""
shadowed = shadowed or {}
callsigns = {s.session: callsign_of(s.name) for s in sessions}
Expand Down
2 changes: 1 addition & 1 deletion src/mumblermapi/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from cryptography.x509.oid import NameOID
from cryptography.x509.verification import Criticality, ExtensionPolicy, PolicyBuilder, Store, VerificationError

# Vx and XVoice connect as "<callsign>---<slot>", with spaces in the callsign replaced by "_".
# ODVoice (built from XVoice) and Vx connect as "<callsign>---<slot>", with spaces in the callsign replaced by "_".
SLOT_SEPARATOR = "---"
_SLOT_RE = re.compile(r"^[A-Za-z0-9_-]{1,64}$")

Expand Down
4 changes: 2 additions & 2 deletions tests/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def ids_fixture(tmp_path: Path) -> UserIds:


def murmur() -> FakeServer:
"""A server with a stale unit net, XVoice's stand-in for the RECON mission net, and four users"""
"""A server with a stale unit net, a client's stand-in for the RECON mission net, and four users"""
server = FakeServer()
server.channel(1, 0, "Units")
server.channel(2, 1, "20")
Expand All @@ -60,7 +60,7 @@ def test_enforce_pass(ids: UserIds) -> None:
# Guard is a mission net open to everyone: no rules of its own, and nobody is moved out of it
guard = server.id_of("/Missions/Guard")
assert acl_of(*server.getACL(guard)) == OPEN
# The subscriber goes from XVoice's stand-in to the real net, the outsider to the root
# The subscriber goes from the stand-in to the real net, the outsider to the root
assert server.users[2].channel == mission and server.users[4].channel == 0

server.users[4].channel = platoon # entered before the net was restricted
Expand Down
2 changes: 1 addition & 1 deletion tests/test_enforce.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_mission_shadows() -> None:
*CHANNELS,
ExistingChannel(8, 0, "Missions"),
ExistingChannel(9, 8, "RECON"),
ExistingChannel(10, 0, "RECON", temporary=True), # XVoice's stand-in
ExistingChannel(10, 0, "RECON", temporary=True), # a client's stand-in
ExistingChannel(11, 9, "RECON", temporary=True), # inside the gated net: fine
ExistingChannel(12, 0, "OTHER", temporary=True),
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
)
def test_parse_username(raw: str, expected: Username) -> None:
"""Vx/XVoice usernames and bare callsigns parse"""
"""ODVoice/Vx usernames and bare callsigns parse"""
assert parse_username(raw) == expected


Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading