aboutsummaryrefslogtreecommitdiffstats
path: root/src/gbproxy/gb_proxy_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbproxy/gb_proxy_peer.c')
-rw-r--r--src/gbproxy/gb_proxy_peer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c
index 3958de99..2c32587d 100644
--- a/src/gbproxy/gb_proxy_peer.c
+++ b/src/gbproxy/gb_proxy_peer.c
@@ -507,9 +507,15 @@ struct gbproxy_sgsn *gbproxy_sgsn_by_tlli(struct gbproxy_config *cfg, struct gbp
{
uint32_t i = 0;
uint32_t index, num_sgsns;
- struct gbproxy_sgsn *sgsn;
OSMO_ASSERT(cfg);
+ struct gbproxy_sgsn *sgsn = cfg->pool.nsf_override;
+
+ if (sgsn) {
+ LOGPSGSN(sgsn, LOGL_ERROR, "Node select function is overridden by config\n");
+ return sgsn;
+ }
+
// TODO: We should keep track of count in cfg
num_sgsns = llist_count(&cfg->sgsns);