Skip to content

Commit

Permalink
address pr comments
Browse files Browse the repository at this point in the history
Signed-off-by: Raguideau <[email protected]>
  • Loading branch information
Raguideau committed Dec 8, 2023
1 parent ba9c3e7 commit 1f775db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/aio5gc/context/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (s *SessionContext) NewSessionContext() {
}}

s.lastAllocatedIP = net.ParseIP("10.0.0.1")
s.n3 = net.ParseIP("127.0.0.1")
s.n3 = net.ParseIP("127.0.0.1").To4()
}

func (s *SessionContext) GetN3() net.IP {
Expand Down Expand Up @@ -96,6 +96,6 @@ func (s *SessionContext) GetUnallocatedIP() net.IP {
log.Fatal("[5GC][NAS] Error while allocating ip for PDU session: " + err.Error())
}

s.lastAllocatedIP = net.ParseIP(ip)
s.lastAllocatedIP = net.ParseIP(ip).To4()
return s.lastAllocatedIP
}

0 comments on commit 1f775db

Please sign in to comment.