The peace treaty signed at Segauli established Nepal's borders pretty much as they are today.
The peace treaty focused on the borders of Nepal.
There were several treaties and when each was signed the border was changed.