fix build_realm (mcc / mnc swap)

This commit is contained in:
Harald Welte 2024-03-27 18:04:04 +01:00
parent 5763049d60
commit 415d3d5804
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def extract_plmn(imsi: str, mcc_2digits: bool = True) -> Tuple[int, int]:
return mcc, mnc
def build_realm(mcc: Union[int,str], mnc: Union[int,str]) -> str:
return 'ims.mnc%03d.mcc%03d.3gppnetwork.org' % (int(mcc), int(mnc))
return 'ims.mnc%03d.mcc%03d.3gppnetwork.org' % (int(mnc), int(mcc))
class PyHssApi:
headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}